NAVTOR SDK  v.3.0
Software Development Kit for fast and efficient development of ECDIS, ECS and generic marine applications
scene_manager_gl_helper.h File Reference

Platform-dependent Scene Manager GL initialization helpers. More...

#include <base/inc/platform.h>
#include <base/inc/interfaces/parameters/parameters_impl.h>
#include <visualizationlayer/inc/vis_const.h>
#include <visualizationlayer/inc/gl2d/gl2d_objects.h>
#include <visualizationlayer/inc/gl2d/gl2d_texture_interface.h>
#include <visualizationlayer/inc/gl2d/gl2d_thread_interface.h>
#include <visualizationlayer/inc/gl2d/gl2d_ext_created_ctx_interface.h>
#include <visualizationlayer/inc/vismangl/scene_manager_gl_interface.h>

Go to the source code of this file.

Functions

SDKResult CreateSceneManagerGLInitialParameters (const std::wstring &name, SceneManagerGLType gl_type, const ISDKParametersSP &sharable_context, const sdk::gl2d::IGL2DExtCreatedGlCtxSP &ext_created_ctx, const ISceneManagerGLSP &scene_manager_gl, sdk::gl2d::GL2DTextureFormat texture_format, SDKUInt32 scene_width, SDKUInt32 scene_height, double resolution_dpm, SDKUInt64 flags, ISDKParametersSP &init_params)
 Places scene manager initialization parameters into container which should be passed to Initialize method. More...
 
SDKResult CreateSceneManagerGLInitialParameters (const std::wstring &name, SceneManagerGLType gl_type, const ISDKParametersSP &sharable_context, sdk::gl2d::GL2DTextureFormat texture_format, SDKUInt32 scene_width, SDKUInt32 scene_height, double resolution_dpm, SDKUInt64 flags, ISDKParametersSP &init_params)
 
SDKResult CreateSceneManagerGLInitialParameters (const std::wstring &name, SceneManagerGLType gl_type, const sdk::gl2d::IGL2DThreadSP &gl2d_thread, void *const get_gl_proc_addr, void *const gl_lib_handle, sdk::gl2d::GL2DTextureFormat texture_format, SDKUInt32 scene_width, SDKUInt32 scene_height, double resolution_dpm, SDKUInt64 flags, ISDKParametersSP &init_params)
 Places scene manager initialization parameters into container which should be passed to Initialize method Given parameters are for external GL context, no internal GL contexts will be in use. More...
 
ISDKParametersSP WrapContext (SDKUInt64 ctx)
 

Detailed Description

Platform-dependent Scene Manager GL initialization helpers.

Copyright © The Navtor SDK 2011-2018. All Rights Reserved.

Author
The Navtor SDK authors
Date
02/2018
Maintenance:
The Navtor SDK authors

Function Documentation

◆ CreateSceneManagerGLInitialParameters() [1/3]

SDKResult sdk::visgl::CreateSceneManagerGLInitialParameters ( const std::wstring &  name,
SceneManagerGLType  gl_type,
const ISDKParametersSP &  sharable_context,
const sdk::gl2d::IGL2DExtCreatedGlCtxSP &  ext_created_ctx,
const ISceneManagerGLSP &  scene_manager_gl,
sdk::gl2d::GL2DTextureFormat  texture_format,
SDKUInt32  scene_width,
SDKUInt32  scene_height,
double  resolution_dpm,
SDKUInt64  flags,
ISDKParametersSP &  init_params 
)
inline

Places scene manager initialization parameters into container which should be passed to Initialize method.

Parameters
nameName of the scene manager.
gl_typesee SceneManagerGLType.
sharable_contextPlatform specific reference of an exiting GL context to share with.
ext_created_ctxOwn implementation of IGL2DExtCreatedGlCtx to create GL context by using external application API
scene_manager_glEarlier created scene manager GL instance
texture_formatFormat of the scene texture.
scene_widthScene width.
scene_heightScene height.
resolution_dpmDPM.
flagsFlags.

◆ CreateSceneManagerGLInitialParameters() [2/3]

SDKResult sdk::visgl::CreateSceneManagerGLInitialParameters ( const std::wstring &  name,
SceneManagerGLType  gl_type,
const ISDKParametersSP &  sharable_context,
sdk::gl2d::GL2DTextureFormat  texture_format,
SDKUInt32  scene_width,
SDKUInt32  scene_height,
double  resolution_dpm,
SDKUInt64  flags,
ISDKParametersSP &  init_params 
)
inline
Parameters
nameName of the scene manager.
gl_typesee SceneManagerGLType.
sharable_contextPlatform specific reference of an exiting GL context to share with.
texture_formatFormat of the scene texture.
scene_widthScene width.
scene_heightScene height.
resolution_dpmDPM.
flagsFlags.

◆ CreateSceneManagerGLInitialParameters() [3/3]

SDKResult sdk::visgl::CreateSceneManagerGLInitialParameters ( const std::wstring &  name,
SceneManagerGLType  gl_type,
const sdk::gl2d::IGL2DThreadSP &  gl2d_thread,
void *const  get_gl_proc_addr,
void *const  gl_lib_handle,
sdk::gl2d::GL2DTextureFormat  texture_format,
SDKUInt32  scene_width,
SDKUInt32  scene_height,
double  resolution_dpm,
SDKUInt64  flags,
ISDKParametersSP &  init_params 
)
inline

Places scene manager initialization parameters into container which should be passed to Initialize method Given parameters are for external GL context, no internal GL contexts will be in use.

Parameters
nameName of the scene manager.
gl_typesee SceneManagerGLType.
gl2d_threadOwn implementation of IGL2DThread interface
get_gl_proc_addrPointer to appropriate xxxGetProcAddress method (wglGetProcAddress/eglGetProcAddress/glXGetProcAddressARB/OSMesaGetProcAddress/etc)
gl_lib_handleHandle to appropriate OpenGL library (::GetModuleHandleA("opengl32.dll") for Windows, can be NULL for Linux)
texture_formatFormat of the scene texture.
scene_widthScene width.
scene_heightScene height.
resolution_dpmDPM.
flagsFlags.

◆ WrapContext()

ISDKParametersSP sdk::visgl::WrapContext ( SDKUInt64  ctx)
inline
Parameters
ctxPlatform specific reference of an exiting GL context to share with.