DDNet documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
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
13
#include <
engine/client/graphics_defines.h
>
14
15
class
CGLSLCompiler
;
16
17
class
CGLSL
18
{
19
public
:
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
29
private
:
30
TWGLuint
m_ShaderId
;
31
int
m_Type
;
32
bool
m_IsLoaded
;
33
};
34
35
#endif
CGLSLCompiler
Definition
glsl_shader_compiler.h:14
CGLSL::LoadShader
bool LoadShader(CGLSLCompiler *pCompiler, class IStorage *pStorage, const char *pFile, int Type)
Definition
opengl_sl.cpp:29
CGLSL::GetShaderId
TWGLuint GetShaderId() const
Definition
opengl_sl.cpp:160
CGLSL::m_ShaderId
TWGLuint m_ShaderId
Definition
opengl_sl.h:30
CGLSL::IsLoaded
bool IsLoaded() const
Definition
opengl_sl.cpp:155
CGLSL::m_Type
int m_Type
Definition
opengl_sl.h:31
CGLSL::CGLSL
CGLSL()
Definition
opengl_sl.cpp:165
CGLSL::DeleteShader
void DeleteShader()
Definition
opengl_sl.cpp:147
CGLSL::m_IsLoaded
bool m_IsLoaded
Definition
opengl_sl.h:32
IStorage
Definition
storage.h:21
graphics_defines.h
TWGLuint
uint32_t TWGLuint
Definition
graphics_defines.h:7
src
engine
client
backend
opengl
opengl_sl.h
Generated by
1.18.0