NAVTOR SDK  v.3.0
Software Development Kit for fast and efficient development of ECDIS, ECS and generic marine applications
IGL2DTexture Class Referenceabstract

GL2D Texture object. More...

#include <gl2d_texture_interface.h>

Inheritance diagram for IGL2DTexture:
IGL2DClipTexture

Public Member Functions

virtual void SDK_CALLTYPE Dump () const =0 throw ()
 Dumps given object.
 
virtual IGL2DCanvasSP SDK_CALLTYPE GetParent () const =0 throw ()
 Returns parent canvas object.
 
virtual SDKSize SDK_CALLTYPE GetSize () const =0 throw ()
 Returns texture dimensions.
 
virtual GL2DTextureFormat SDK_CALLTYPE GetFormat () const =0 throw ()
 Returns texture format.
 
virtual GL2DNativeTextureFormat SDK_CALLTYPE GetNativeFormat () const =0 throw ()
 Returns native (internal) texture format.
 
virtual bool SDK_CALLTYPE IsPremultipliedColors () const =0 throw ()
 Returns pre-multiplied/non pre-multiplied colors flag.
 
virtual SDKUInt32 SDK_CALLTYPE GetMemSize () const =0 throw ()
 Returns texture memory size.
 
virtual SDKInt32 SDK_CALLTYPE GetID () const =0 throw ()
 Returns texture OpenGL ID.
 
virtual SDKResult SDK_CALLTYPE GetBits (void *const data) const =0 throw ()
 Returns texture bits Bottom-left corner pixel color is a first byte, strides goes from bottom to top NOTE: Not all of textures support bits extraction due of it's format. Mostly it's about OpenGL ES2 and formats like BGRA/RGB/RGB16. At least for RGBA texture GetBits operation is always supported See IGL2DCaps::IsCanvasOperationSupported method VERY SLOW METHOD, USE FOR DEBUG PURPOSE ONLY!!!
 
virtual SDKResult SDK_CALLTYPE Clone (IGL2DTextureSP &cloned_tex)=0 throw ()
 Clones given texture NOTE: Not all of textures can be cloned due of it's format. Mostly it's about OpenGL ES2 and formats like BGRA/RGB/RGB16. At least for RGBA texture cloning operation is always supported See IGL2DCaps::IsCanvasOperationSupported method.
 
virtual SDKResult SDK_CALLTYPE CopyTo (const SDKRect2D &src_tex_rect, const SDKPointI2D &dst_pos, const IGL2DTextureSP &dst_tex)=0 throw ()
 Copies requested part of given texture to destination texture src_tex_rect - Describes rectangle of source (given) texture to copy (0, 0) - bottom left corner of given texture dst_pos - Destination position of bottom left corner of source texture in destination texture, (0,0) - bottom left corner of dest. tex. dst_tex - Destination texture, should have proper size to be able to fit source texture rectangle See IGL2DCaps::IsCanvasOperationSupported method.
 
SDKResult SDK_CALLTYPE CopyTo (const SDKPointI2D &dst_pos, const IGL2DTextureSP &dst_tex)
 Copies whole source texture to destination texture.
 
virtual SDKResult SDK_CALLTYPE SaveTexture (const SDKAny &file_path, const GL2DImageFormat &format) const =0 throw ()
 Saves given texture in requested format See IGL2DCanvasUtils::SaveTexture.
 

Detailed Description

GL2D Texture object.


The documentation for this class was generated from the following file: