![]() |
DDNet documentation
|
#include <glsl_shader_compiler.h>
Classes | |
| class | CDefine |
Public Types | |
| enum class | EShaderType { VERTEX , FRAGMENT } |
| enum class | ETextureReplaceType { TEXTURE_2D , TEXTURE_3D , TEXTURE_2D_ARRAY } |
Public Member Functions | |
| CGLSLCompiler (int OpenGLVersionMajor, int OpenGLVersionMinor, int OpenGLVersionPatch, bool IsOpenGLES, float TextureLODBias) | |
| void | SetHasTextureArray (bool TextureArray) |
| void | SetTextureReplaceType (ETextureReplaceType TextureReplaceType) |
| void | AddDefine (const char *pDefineName, const char *pDefineValue) |
| void | ClearDefines () |
| void | ParseLine (std::string &Line, const char *pReadLine, EShaderType Type) const |
Private Member Functions | |
| void | ParseLineOldOpenGL (std::string &Line, const char *pReadLine, EShaderType Type) const |
| void | ParseLineGLES (std::string &Line, const char *pReadLine) const |
Private Attributes | |
| std::vector< CDefine > | m_vDefines |
| int | m_OpenGLVersionMajor |
| int | m_OpenGLVersionMinor |
| int | m_OpenGLVersionPatch |
| bool | m_IsOpenGLES |
| float | m_TextureLODBias |
| bool | m_HasTextureArray |
| ETextureReplaceType | m_TextureReplaceType |
Friends | |
| class | CGLSL |
|
strong |
|
strong |
| CGLSLCompiler::CGLSLCompiler | ( | int | OpenGLVersionMajor, |
| int | OpenGLVersionMinor, | ||
| int | OpenGLVersionPatch, | ||
| bool | IsOpenGLES, | ||
| float | TextureLODBias ) |
| void CGLSLCompiler::AddDefine | ( | const char * | pDefineName, |
| const char * | pDefineValue ) |
| void CGLSLCompiler::ClearDefines | ( | ) |
| void CGLSLCompiler::ParseLine | ( | std::string & | Line, |
| const char * | pReadLine, | ||
| EShaderType | Type ) const |
|
private |
|
private |
|
inline |
|
inline |
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |