DDraceNetwork Docs
opengl_sl.h
Go to the documentation of this file.
1// This file can be included several times.
2#if(!defined(BACKEND_AS_OPENGL_ES) && !defined(ENGINE_CLIENT_BACKEND_OPENGL_OPENGL_SL_H)) || \
3 (defined(BACKEND_AS_OPENGL_ES) && !defined(ENGINE_CLIENT_BACKEND_OPENGL_OPENGL_SL_H_AS_ES))
4
5#if !defined(BACKEND_AS_OPENGL_ES) && !defined(ENGINE_CLIENT_BACKEND_OPENGL_OPENGL_SL_H)
6#define ENGINE_CLIENT_BACKEND_OPENGL_OPENGL_SL_H
7#endif
8
9#if defined(BACKEND_AS_OPENGL_ES) && !defined(ENGINE_CLIENT_BACKEND_OPENGL_OPENGL_SL_H_AS_ES)
10#define ENGINE_CLIENT_BACKEND_OPENGL_OPENGL_SL_H_AS_ES
11#endif
12
14
15class CGLSLCompiler;
16
17class CGLSL
18{
19public:
20 bool LoadShader(CGLSLCompiler *pCompiler, class IStorage *pStorage, const char *pFile, int Type);
21 void DeleteShader();
22
23 bool IsLoaded() const;
24 TWGLuint GetShaderId() const;
25
26 CGLSL();
27 virtual ~CGLSL();
28
29private:
31 int m_Type;
33};
34
35#endif
Definition: glsl_shader_compiler.h:14
Definition: opengl_sl.h:18
bool LoadShader(CGLSLCompiler *pCompiler, class IStorage *pStorage, const char *pFile, int Type)
Definition: opengl_sl.cpp:22
TWGLuint GetShaderId() const
Definition: opengl_sl.cpp:146
TWGLuint m_ShaderId
Definition: opengl_sl.h:30
bool IsLoaded() const
Definition: opengl_sl.cpp:141
virtual ~CGLSL()
Definition: opengl_sl.cpp:156
int m_Type
Definition: opengl_sl.h:31
CGLSL()
Definition: opengl_sl.cpp:151
void DeleteShader()
Definition: opengl_sl.cpp:133
bool m_IsLoaded
Definition: opengl_sl.h:32
Definition: storage.h:20
uint32_t TWGLuint
Definition: graphics_defines.h:7