OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4DrawGL.h File Reference
#include "C4ForbidLibraryCompilation.h"
#include <GL/glew.h>
#include "graphics/C4Draw.h"
#include "graphics/C4Shader.h"
Include dependency graph for C4DrawGL.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  C4DrawGLError
 
class  CStdGLCtx
 
class  CStdGL
 
struct  CStdGL.Workarounds
 

Macros

#define INC_StdGL
 

Enumerations

enum  C4SS_Uniforms {
  C4SSU_ProjectionMatrix, C4SSU_ModelViewMatrix, C4SSU_NormalMatrix, C4SSU_ClrMod,
  C4SSU_Gamma, C4SSU_BaseTex, C4SSU_OverlayTex, C4SSU_OverlayClr,
  C4SSU_LightTex, C4SSU_LightTransform, C4SSU_NormalTex, C4SSU_AmbientTex,
  C4SSU_AmbientTransform, C4SSU_AmbientBrightness, C4SSU_MaterialAmbient, C4SSU_MaterialDiffuse,
  C4SSU_MaterialSpecular, C4SSU_MaterialEmission, C4SSU_MaterialShininess, C4SSU_Bones,
  C4SSU_CullMode, C4SSU_FrameCounter, C4SSU_Count
}
 
enum  C4SS_Attributes {
  C4SSA_Position, C4SSA_Normal, C4SSA_TexCoord, C4SSA_Color,
  C4SSA_BoneIndices0, C4SSA_BoneIndices1, C4SSA_BoneWeights0, C4SSA_BoneWeights1,
  C4SSA_Count
}
 

Variables

CStdGLpGL
 

Class Documentation

struct CStdGL.Workarounds

Definition at line 276 of file C4DrawGL.h.

Class Members
bool ForceSoftwareTransform
bool LowMaxVertexUniformCount

Macro Definition Documentation

#define INC_StdGL

Definition at line 21 of file C4DrawGL.h.

Enumeration Type Documentation

Enumerator
C4SSA_Position 
C4SSA_Normal 
C4SSA_TexCoord 
C4SSA_Color 
C4SSA_BoneIndices0 
C4SSA_BoneIndices1 
C4SSA_BoneWeights0 
C4SSA_BoneWeights1 
C4SSA_Count 

Definition at line 86 of file C4DrawGL.h.

87 {
88  C4SSA_Position, // 2d for sprites, 3d for meshes
89  C4SSA_Normal, // meshes only
90  C4SSA_TexCoord, // 2d
91  C4SSA_Color, // sprites only, 4d
92 
95 
98 
100 };
Enumerator
C4SSU_ProjectionMatrix 
C4SSU_ModelViewMatrix 
C4SSU_NormalMatrix 
C4SSU_ClrMod 
C4SSU_Gamma 
C4SSU_BaseTex 
C4SSU_OverlayTex 
C4SSU_OverlayClr 
C4SSU_LightTex 
C4SSU_LightTransform 
C4SSU_NormalTex 
C4SSU_AmbientTex 
C4SSU_AmbientTransform 
C4SSU_AmbientBrightness 
C4SSU_MaterialAmbient 
C4SSU_MaterialDiffuse 
C4SSU_MaterialSpecular 
C4SSU_MaterialEmission 
C4SSU_MaterialShininess 
C4SSU_Bones 
C4SSU_CullMode 
C4SSU_FrameCounter 
C4SSU_Count 

Definition at line 50 of file C4DrawGL.h.

51 {
53  C4SSU_ModelViewMatrix, // 4x4
54  C4SSU_NormalMatrix, // 3x3, transpose-inverse of modelview matrix
55 
56  C4SSU_ClrMod, // always
57  C4SSU_Gamma, // always
58 
59  C4SSU_BaseTex, // C4SSC_BASE
60  C4SSU_OverlayTex, // C4SSC_OVERLAY
61  C4SSU_OverlayClr, // C4SSC_OVERLAY
62 
63  C4SSU_LightTex, // C4SSC_LIGHT
64  C4SSU_LightTransform, // C4SSC_LIGHT
65  C4SSU_NormalTex, // C4SSC_LIGHT | C4SSC_NORMAL
66 
67  C4SSU_AmbientTex, // C4SSC_LIGHT
68  C4SSU_AmbientTransform, // C4SSC_LIGHT
69  C4SSU_AmbientBrightness, // C4SSC_LIGHT
70 
71  C4SSU_MaterialAmbient, // for meshes
72  C4SSU_MaterialDiffuse, // for meshes
73  C4SSU_MaterialSpecular, // for meshes
74  C4SSU_MaterialEmission, // for meshes
75  C4SSU_MaterialShininess, // for meshes
76 
77  C4SSU_Bones, // for meshes
78  C4SSU_CullMode, // for meshes
79 
80  C4SSU_FrameCounter, // for custom shaders
81 
83 };

Variable Documentation

CStdGL* pGL

Definition at line 914 of file C4DrawGL.cpp.