NAVTOR SDK  v.3.0
Software Development Kit for fast and efficient development of ECDIS, ECS and generic marine applications
gl2d_factory_interface.h
Go to the documentation of this file.
1 #ifndef SDK_GL2D_FACTORY_INTERFACE_H_
11 #define SDK_GL2D_FACTORY_INTERFACE_H_
12 #pragma once
13 
14 #include <base/inc/platform.h>
15 #include <base/inc/base_types.h>
16 #include <base/inc/sdk_component_base.h>
18 #include <visualizationlayer/inc/vis_const.h>
19 
21 #include "gl2d_canvas_interface.h"
22 
23 SDK_GL2D_BEGIN_NAMESPACE
24 
26 
30 {
31 };
32 
35 class IGL2DFactory : public ISDKProperties
36 {
37  public:
39  virtual void SDK_CALLTYPE Dump() const throw() = 0;
40 
45  virtual SDKResult SDK_CALLTYPE CreateCanvas(
46  const GL2DCanvasType& canvas_type, const IGL2DCreateCanvasSettingsSP& settings,
47  const GlSharedCtx& shared_gl_context, IGL2DCanvasSP& canvas) const throw() = 0;
48  virtual SDKResult SDK_CALLTYPE CreateCanvas(const GL2DCanvasType& canvas_type,
49  const IGL2DCreateCanvasSettingsSP& settings,
50  IGL2DCanvasSP& canvas) const throw() = 0;
51 
54  virtual IGL2DFontsStorageSP SDK_CALLTYPE GetFontsStorage() const throw() = 0;
55 
56  SDK_IMPLEMENT_IID(IGL2DFactory)
57  SDK_END_INTERFACE(IGL2DFactory)
58 };
59 SDK_DECLARE_IID(IGL2DFactory)
60 
61 SDK_GL2D_END_NAMESPACE
62 
63 #endif // SDK_GL2D_FACTORY_INTERFACE_H_
gl2d_fonts_storage_interface.h
GL2D fonts storage, which allows to register/unregister/manage fonts collection. Only registered font...
base_types.h
SDK base types.
GlSharedCtx
Platform-specific OpenGL/ES2 context to share with.
Definition: gl2d_objects.h:275
properties_interface.h
Object generic properties interface.
IGL2DFactory
GL2D factory, which allows to create appropriate GL2D object.
Definition: gl2d_factory_interface.h:35
IGL2DFactory::Dump
virtual void SDK_CALLTYPE Dump() const =0
Dumps given object.
SDKResult
SDKInt32 SDKResult
Type of all error or return codes which SDK functions can end with.
Definition: sdk_results.h:17
IGL2DFactory::CreateCanvas
virtual SDKResult SDK_CALLTYPE CreateCanvas(const GL2DCanvasType &canvas_type, const IGL2DCreateCanvasSettingsSP &settings, const GlSharedCtx &shared_gl_context, IGL2DCanvasSP &canvas) const =0
Creates new GL2D Canvas object kGL2DPlatformType_ExternallyCreated and kGL2DPlatformType_ExternallyMa...
IGL2DFactory::GetFontsStorage
virtual IGL2DFontsStorageSP SDK_CALLTYPE GetFontsStorage() const =0
Returns Fonts Storage object. Given storage is common for all of created Canvas objects.
GL2DCanvasType
GL2DCanvasType
OpenGL canvas type.
Definition: gl2d_canvas_interface.h:268
gl2d_canvas_interface.h
GL2D Canvas to use to drawing.
platform.h
Describes the platform constants.
GL2DFactoryPropertyIDs
GL2DFactoryPropertyIDs
Generic GL2D Factory properties.
Definition: gl2d_factory_interface.h:29
FWD_DECL_INTERFACE
FWD_DECL_INTERFACE(ILWEParserWrapper)
Provides a wrapper around the message parser to get, add or remove the.