 |
NAVTOR SDK
v.3.0
Software Development Kit for fast and efficient development of ECDIS, ECS and generic marine applications
|
|
Go to the documentation of this file.
10 #ifndef SDK_VIS_TEXTURE_INTERFACE_H_
11 #define SDK_VIS_TEXTURE_INTERFACE_H_
16 #include <base/inc/forward_declarations.h>
71 const TextureFormat& data_format,
const SDKUInt32& data_stride_size,
78 SDKUInt8*
const bits)
const throw() = 0;
87 const ITextureSP& texture,
const bool& force_resize)
throw() = 0;
98 #endif // SDK_VIS_TEXTURE_INTERFACE_H_
virtual SDKResult SDK_CALLTYPE GetSize(SDKSize &size) const =0
Returns size of texture object.
@ kTextureStrideOrder_BottomToTop
First stride for bottom bitmap scanline.
Definition: texture_interface.h:42
virtual SDKResult SDK_CALLTYPE CopyBits(const SDKRect2D &rect_to_copy, const TextureFormat &format, const SDKUInt32 &stride_size, const TextureStrideOrder &stride_order, const SDKUInt32 &bits_size, SDKUInt8 *const bits) const =0
Copies bits of texture object into user-defined array.
Interfaces wrapper with reference count control.
TextureStrideOrder
Texture strides order.
Definition: texture_interface.h:39
Object generic properties interface.
@ kTextureFormat_RGBA
RGBA, 32 bit per pixel.
Definition: texture_interface.h:33
virtual SDKResult SDK_CALLTYPE CopyFrom(const ITextureSP &texture)=0
Copies data from another texture.
SDKInt32 SDKResult
Type of all error or return codes which SDK functions can end with.
Definition: sdk_results.h:17
virtual SDKResult SDK_CALLTYPE GetBits(TextureFormat &format, SDKUInt32 &stride_size, TextureStrideOrder &stride_order, SDKArray &bits) const =0
Returns bits of texture object. Texture data will be copied into new array.
@ kTextureProperty_ID
Unique texture ID, SDKUint64.
Definition: texture_interface.h:49
Provides access to members that control the properties.
Definition: properties_interface.h:32
TexturePropertyIDs
Generic texture properties.
Definition: texture_interface.h:47
TextureFormat
Texture bytes format.
Definition: texture_interface.h:30
@ kTextureFormat_BGRA
BGRA, 32 bit per pixel.
Definition: texture_interface.h:34
@ kTextureStrideOrder_TopToBottom
First stride for top bitmap scanline.
Definition: texture_interface.h:41
@ kTextureFormat_Unknown
Unknown texture format.
Definition: texture_interface.h:32
Common base SDK interfaces.
virtual SDKResult SDK_CALLTYPE SetBits(const SDKSize &texture_size, const TextureFormat &data_format, const SDKUInt32 &data_stride_size, const TextureStrideOrder &data_stride_order, const SDKArray &bits)=0
Sets bits to texture object, resizes the texture, if needed.
@ kTextureProperty_Version
Texture version, increased at every texture change, SDKUint64.
Definition: texture_interface.h:50
SizeUI.
Definition: geometry_base_types.h:1235
Platform independent texture.
Definition: texture_interface.h:55
FWD_DECL_INTERFACE(ILWEParserWrapper)
Provides a wrapper around the message parser to get, add or remove the.
virtual SDKResult SDK_CALLTYPE Swap(const ITextureSP &texture, const bool &force_resize)=0
Swaps given texture data with data from source texture force_resize flag forces the resizing of given...