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

OpenGL based texture. More...

#include <texture_opengl_interface.h>

Inheritance diagram for ITextureOpenGL:
ITexture ISDKProperties

Public Member Functions

virtual SDKResult SDK_CALLTYPE GetTextureID (GLint &texture_id) const =0 throw ()
 Returns the OpenGL texture ID The instance of ITextureOpenGL component should be also kept to prevent destruction of OpenGL native texture object. To obtain the OpenGL context, which holds given texture, use the GetOpenGLContext method.
 
virtual SDKResult SDK_CALLTYPE GetOpenGLContext (sdk::gfx::OpenGLGraphicsDeviceContext &opengl_ctx) const =0 throw ()
 Returns the OpenGL native device context, which holds the given texture.
 
- Public Member Functions inherited from ITexture
virtual SDKResult SDK_CALLTYPE GetSize (SDKSize &size) const =0 throw ()
 Returns size of texture object.
 
virtual SDKResult SDK_CALLTYPE CopyFrom (const ITextureSP &texture)=0 throw ()
 Copies data from another texture.
 
virtual SDKResult SDK_CALLTYPE GetBits (TextureFormat &format, SDKUInt32 &stride_size, TextureStrideOrder &stride_order, SDKArray &bits) const =0 throw ()
 Returns bits of texture object. Texture data will be copied into new array.
 
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 throw ()
 Sets bits to texture object, resizes the texture, if needed.
 
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 throw ()
 Copies bits of texture object into user-defined array.
 
virtual SDKResult SDK_CALLTYPE Swap (const ITextureSP &texture, const bool &force_resize)=0 throw ()
 Swaps given texture data with data from source texture force_resize flag forces the resizing of given texture to satisfy source texture size. In case of resize given texture will loose it's data, i.e. after swap performed, given texture will be filled with data from source texture, but source texture will be empty CAN BE NOT IMPLEMENTED.
 
- Public Member Functions inherited from ISDKProperties
virtual SDKResult SDK_CALLTYPE SetProperty (const SDKPropertyID &id, const SDKAny &value)=0 throw ()
 Sets a property value.
 
virtual SDKResult SDK_CALLTYPE GetProperty (const SDKPropertyID &id, SDKAny &value) const =0 throw ()
 Retrieves a property value.
 

Detailed Description

OpenGL based texture.


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