NAVTOR SDK  v.3.0
Software Development Kit for fast and efficient development of ECDIS, ECS and generic marine applications
texture_opengl_interface.h
Go to the documentation of this file.
1 
10 #ifndef SDK_VIS_TEXTURE_OPENGL_INTERFACE_H_
11 #define SDK_VIS_TEXTURE_OPENGL_INTERFACE_H_
12 #pragma once
13 
14 #include <base/inc/platform.h>
15 #include <base/inc/base_types.h>
17 #include <base/inc/sdk_ref_ptr.h>
19 #include "../texture_interface.h"
20 
21 namespace sdk {
22 namespace vis {
23 namespace scene {
24 
25 FWD_DECL_INTERFACE(ITextureOpenGL)
26 
27 class ITextureOpenGL : public ITexture
30 {
31 public:
36  virtual SDKResult SDK_CALLTYPE GetTextureID(GLint& texture_id) const throw() = 0;
37 
39  virtual SDKResult SDK_CALLTYPE GetOpenGLContext(
40  sdk::gfx::OpenGLGraphicsDeviceContext& opengl_ctx) const throw() = 0;
41 
42  SDK_IMPLEMENT_IID(ITextureOpenGL)
43  SDK_END_INTERFACE(ITextureOpenGL)
44 };
45 SDK_DECLARE_IID(ITextureOpenGL)
46 
47 } // namespace scene
48 } // namespace vis
49 } // namespace sdk
50 
51 #endif // SDK_VIS_TEXTURE_OPENGL_INTERFACE_H_
base_types.h
SDK base types.
sdk_ref_ptr.h
Interfaces wrapper with reference count control.
SDKResult
SDKInt32 SDKResult
Type of all error or return codes which SDK functions can end with.
Definition: sdk_results.h:17
sdk_component_interface.h
Common base SDK interfaces.
platform.h
Describes the platform constants.
os_specific_types.h
Set of structures, which is specific for each of OS, like OpenGL context parameters for Linux or Dire...
sdk::vis::scene::ITextureOpenGL::GetOpenGLContext
virtual SDKResult SDK_CALLTYPE GetOpenGLContext(sdk::gfx::OpenGLGraphicsDeviceContext &opengl_ctx) const =0
Returns the OpenGL native device context, which holds the given texture.
sdk::vis::scene::ITextureOpenGL::GetTextureID
virtual SDKResult SDK_CALLTYPE GetTextureID(GLint &texture_id) const =0
Returns the OpenGL texture ID The instance of ITextureOpenGL component should be also kept to prevent...
FWD_DECL_INTERFACE
FWD_DECL_INTERFACE(ILWEParserWrapper)
Provides a wrapper around the message parser to get, add or remove the.