![]() |
NAVTOR SDK
v.3.0
Software Development Kit for fast and efficient development of ECDIS, ECS and generic marine applications
|
Gives centralized access to all graphic resources. More...
#include <graphic_context_interface.h>
Public Member Functions | |
| 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. | |
Gives centralized access to all graphic resources.