 |
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_GRAPHIC_CONTEXT_INTERFACE_H_
11 #define SDK_VIS_GRAPHIC_CONTEXT_INTERFACE_H_
16 #include <base/inc/forward_declarations.h>
22 #include <geometry/inc/geometry/geometry2d/2d_geometry_objects.h>
23 #include <visualizationlayer/inc/graphics/2d_graphics_objects.h>
125 const IGraphicContextInitialParametersSP& initial_parameters,
126 IGraphicContextSP& context)
throw() = 0;
134 SDK_DECLARE_IID(IGraphicContextFactory)
142 virtual GraphicContextType SDK_CALLTYPE
GetType()
const throw() = 0;
152 gfx::RenderTargetFactorySP& rt_factory) throw() = 0;
156 geometry::GeometryPathFactorySP& geom_factory) throw() = 0;
160 const
SDKSize& size, ITextureSP& texture) throw() = 0;
164 gfx::RenderTargetSP& render_target) throw() = 0;
166 SDK_IMPLEMENT_IID(IGraphicContext)
167 SDK_END_INTERFACE(IGraphicContext)
169 SDK_DECLARE_IID(IGraphicContext)
175 #endif // SDK_VIS_GRAPHIC_CONTEXT_INTERFACE_H_
@ kGraphicContextProperty_MSAALevelForNewRT
MSAA level for new render target on texture.
Definition: graphic_context_interface.h:65
virtual GraphicContextType SDK_CALLTYPE GetType() const =0
Returns graphics context type.
@ kGraphicContextInitialParameter_DirectXCtx
DirectX context.
Definition: graphic_context_interface.h:95
Interfaces wrapper with reference count control.
@ kGraphicContextInitialParameter_Window
OS specific window.
Definition: graphic_context_interface.h:99
virtual SDKResult SDK_CALLTYPE GetGeometryPathFactory(geometry::GeometryPathFactorySP &geom_factory)=0
Returns geometry factory (which creates geometry pathes).
Object generic properties interface.
@ kGraphicContextType_OpenGL
context based on OpenGL library (Any OS)
Definition: graphic_context_interface.h:53
@ kGraphicContextInitialParameter_DeviceCtx
OS specific device context.
Definition: graphic_context_interface.h:97
@ kGraphicContextProperty_DontEraseNewTexture
Don't erase newsly created textures flag.
Definition: graphic_context_interface.h:66
@ kGraphicContextProperty_Version
Changed when resources are discarded.
Definition: graphic_context_interface.h:64
virtual SDKResult SDK_CALLTYPE IsContextAvailable(GraphicContextType type) const =0
Checks, if given context is available for given machine.
@ kGraphicContextType_DirectX11
DirectX 11 based BackEnd only.
Definition: graphic_context_interface.h:56
@ kGraphicContextType_Unknown
context type is unknown
Definition: graphic_context_interface.h:57
Provides access to members for managing a parameter set.
Provides access to members that manage parameters of an object.
Definition: parameters_interface.h:33
GraphicContextType
Possible types of graphics context, like context based on DirectX or OpenGL.
Definition: graphic_context_interface.h:49
SDKInt32 SDKResult
Type of all error or return codes which SDK functions can end with.
Definition: sdk_results.h:17
Definition of graphic texture interfaces.
Provides access to members that control the properties.
Definition: properties_interface.h:32
Common base SDK interfaces.
@ kGraphicContextType_DirectX10
context based on DirectX 10 library (Windows 7 and later)
Definition: graphic_context_interface.h:52
@ kGraphicContextType_Software
context based on software implementation (Any OS)
Definition: graphic_context_interface.h:54
GraphicContextPropertiesID
Set of common graphics context properties.
Definition: graphic_context_interface.h:62
virtual SDKResult SDK_CALLTYPE CreateCompatibleContext(IGraphicContextSP &context)=0
Creates context compatible to current one.
Initial settings to create an appropriate graphics context by factory. No own methods,...
Definition: graphic_context_interface.h:106
virtual SDKResult SDK_CALLTYPE Create2DTexture(const TextureFormat &format, const SDKSize &size, ITextureSP &texture)=0
Creates special texture which can be used as source for render target.
@ kGraphicContextType_Auto
context is chosen automatically
Definition: graphic_context_interface.h:51
@ kGraphicContextInitialParameter_Display
OS specific display.
Definition: graphic_context_interface.h:98
GraphicContextInitialParametersID
Initialization parameters for OpenGL/DirectX based contexts.
Definition: graphic_context_interface.h:93
Base interface for all SDK interfaces.
Definition: sdk_component_interface.h:41
virtual SDKResult SDK_CALLTYPE GetRenderTargetFactory(gfx::RenderTargetFactorySP &rt_factory)=0
Returns render target factory (which creates graphics objects).
@ kGraphicContextInitialParameter_VisualInfo
OS specific Visual info.
Definition: graphic_context_interface.h:100
virtual SDKResult SDK_CALLTYPE DiscardResources()=0
Should be called if client finds out that device is lost.
virtual SDKResult SDK_CALLTYPE CreateContext(GraphicContextType type, const IGraphicContextInitialParametersSP &initial_parameters, IGraphicContextSP &context)=0
Creates graphic context according to a specified type. If type is 'Auto' the most suitable context fo...
virtual SDKResult SDK_CALLTYPE CreateRenderTarget(const ITextureSP &texture, gfx::RenderTargetSP &render_target)=0
Create render target on texture.
@ kGraphicContextInitialParameter_OpenGLCtx
OS specific OpenGL context.
Definition: graphic_context_interface.h:96
@ kGraphicContextType_DirectX9
DirectX 9 based BackEnd only.
Definition: graphic_context_interface.h:55
SizeUI.
Definition: geometry_base_types.h:1235
FWD_DECL_INTERFACE(ILWEParserWrapper)
Provides a wrapper around the message parser to get, add or remove the.
Factory for all graphic context implementations.
Definition: graphic_context_interface.h:118