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

Gives centralized access to specific to OpenGL graphic resources. More...

#include <graphic_context_opengl_interface.h>

Inheritance diagram for IGraphicContextOpenGL:
IGraphicContext ISDKProperties

Public Member Functions

virtual SDKResult SDK_CALLTYPE GetOpenGLContext (sdk::gfx::OpenGLGraphicsDeviceContext &opengl_ctx)=0 throw ()
 Returns internal OpenGL context in use.
 
virtual SDKResult SDK_CALLTYPE CreateShaderOnMemory (const SDKUInt8 *vertex_shader_data, SDKUInt32 vertex_shader_data_size, const SDKUInt8 *geometry_shader_data, SDKUInt32 geometry_shader_data_size, const SDKUInt8 *fragment_shader_data, SDKUInt32 fragment_shader_data_size, IShaderSP &shader)=0 throw ()
 Create OpenGL shader on specified data.
 
- Public Member Functions inherited from IGraphicContext
virtual GraphicContextType SDK_CALLTYPE GetType () const =0 throw ()
 Returns graphics context type.
 
virtual SDKResult SDK_CALLTYPE CreateCompatibleContext (IGraphicContextSP &context)=0 throw ()
 Creates context compatible to current one.
 
virtual SDKResult SDK_CALLTYPE DiscardResources ()=0 throw ()
 Should be called if client finds out that device is lost.
 
virtual SDKResult SDK_CALLTYPE GetRenderTargetFactory (gfx::RenderTargetFactorySP &rt_factory)=0 throw ()
 Returns render target factory (which creates graphics objects).
 
virtual SDKResult SDK_CALLTYPE GetGeometryPathFactory (geometry::GeometryPathFactorySP &geom_factory)=0 throw ()
 Returns geometry factory (which creates geometry pathes).
 
virtual SDKResult SDK_CALLTYPE Create2DTexture (const TextureFormat &format, const SDKSize &size, ITextureSP &texture)=0 throw ()
 Creates special texture which can be used as source for render target.
 
virtual SDKResult SDK_CALLTYPE CreateRenderTarget (const ITextureSP &texture, gfx::RenderTargetSP &render_target)=0 throw ()
 Create render target on texture.
 
- 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

Gives centralized access to specific to OpenGL graphic resources.


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