NAVTOR SDK  v.3.0
Software Development Kit for fast and efficient development of ECDIS, ECS and generic marine applications
shader_opengl_interface.h
Go to the documentation of this file.
1 #ifndef SDK_SHADER_OPENGL_INTERFACE_H_
11 #define SDK_SHADER_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 "../shader_interface.h"
20 
21 namespace sdk {
22 namespace vis {
23 namespace scene {
24 
25 FWD_DECL_INTERFACE(IShaderOpenGL)
28 class IShaderOpenGL : public IShader
29 {
30 public:
35  virtual SDKResult SDK_CALLTYPE GetProgramID(GLuint& program_id) const throw() = 0;
36 
38  virtual SDKResult SDK_CALLTYPE GetOpenGLContext(
39  sdk::gfx::OpenGLGraphicsDeviceContext& opengl_ctx) const throw() = 0;
40 
41  SDK_IMPLEMENT_IID(IShaderOpenGL)
42  SDK_END_INTERFACE(IShaderOpenGL)
43 };
44 SDK_DECLARE_IID(IShaderOpenGL)
45 
46 } // namespace scene
47 } // namespace vis
48 } // namespace sdk
49 
50 #endif // SDK_SHADER_OPENGL_INTERFACE_H_
sdk::vis::scene::IShaderOpenGL
OpenGL based shader.
Definition: shader_opengl_interface.h:28
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::IShader
Platform independent shader.
Definition: shader_interface.h:29
FWD_DECL_INTERFACE
FWD_DECL_INTERFACE(ILWEParserWrapper)
Provides a wrapper around the message parser to get, add or remove the.