OpenClonk
C4LandscapeRender.h File Reference
#include "C4ForbidLibraryCompilation.h"
#include "graphics/C4FacetEx.h"
#include "graphics/C4Shader.h"
#include "graphics/C4Surface.h"
#include <chrono>
Include dependency graph for C4LandscapeRender.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  C4LandscapeRender
 
class  C4LandscapeRenderGL
 

Enumerations

enum  C4LR_Byte {
  C4LR_Material , C4LR_BiasX , C4LR_BiasY , C4LR_Scaler ,
  C4LR_Place , C4LR_ByteCount
}
 
enum  C4LR_Uniforms {
  C4LRU_ProjectionMatrix , C4LRU_LandscapeTex , C4LRU_ScalerTex , C4LRU_MaterialTex ,
  C4LRU_LightTex , C4LRU_AmbientTex , C4LRU_Gamma , C4LRU_Resolution ,
  C4LRU_Center , C4LRU_MatMapTex , C4LRU_MaterialDepth , C4LRU_MaterialSize ,
  C4LRU_AmbientBrightness , C4LRU_AmbientTransform , C4LRU_Modulation , C4LRU_FrameCounter ,
  C4LRU_Time , C4LRU_Count
}
 
enum  C4LR_Attributes { C4LRA_Position , C4LRA_LandscapeTexCoord , C4LRA_LightTexCoord , C4LRA_Count }
 

Variables

const int C4LR_BytesPerPx = 3
 
const int C4LR_BytesPerSurface = 4
 
const int C4LR_SurfaceCount = (C4LR_ByteCount + C4LR_BytesPerSurface - 1) / C4LR_BytesPerSurface
 

Enumeration Type Documentation

◆ C4LR_Attributes

Enumerator
C4LRA_Position 
C4LRA_LandscapeTexCoord 
C4LRA_LightTexCoord 
C4LRA_Count 

Definition at line 66 of file C4LandscapeRender.h.

67 {
71 
73 };
@ C4LRA_Position
@ C4LRA_LandscapeTexCoord
@ C4LRA_Count
@ C4LRA_LightTexCoord

◆ C4LR_Byte

enum C4LR_Byte
Enumerator
C4LR_Material 
C4LR_BiasX 
C4LR_BiasY 
C4LR_Scaler 
C4LR_Place 
C4LR_ByteCount 

Definition at line 28 of file C4LandscapeRender.h.

28  {
30  C4LR_BiasX,
31  C4LR_BiasY,
33  C4LR_Place,
34 
36 };
@ C4LR_BiasX
@ C4LR_Scaler
@ C4LR_Place
@ C4LR_ByteCount
@ C4LR_Material
@ C4LR_BiasY

◆ C4LR_Uniforms

Enumerator
C4LRU_ProjectionMatrix 
C4LRU_LandscapeTex 
C4LRU_ScalerTex 
C4LRU_MaterialTex 
C4LRU_LightTex 
C4LRU_AmbientTex 
C4LRU_Gamma 
C4LRU_Resolution 
C4LRU_Center 
C4LRU_MatMapTex 
C4LRU_MaterialDepth 
C4LRU_MaterialSize 
C4LRU_AmbientBrightness 
C4LRU_AmbientTransform 
C4LRU_Modulation 
C4LRU_FrameCounter 
C4LRU_Time 
C4LRU_Count 

Definition at line 40 of file C4LandscapeRender.h.

41 {
43 
49 
59 
61  C4LRU_Time,
62 
64 };
@ C4LRU_ScalerTex
@ C4LRU_AmbientTransform
@ C4LRU_Modulation
@ C4LRU_AmbientBrightness
@ C4LRU_LightTex
@ C4LRU_Gamma
@ C4LRU_AmbientTex
@ C4LRU_ProjectionMatrix
@ C4LRU_MaterialDepth
@ C4LRU_FrameCounter
@ C4LRU_LandscapeTex
@ C4LRU_Time
@ C4LRU_Resolution
@ C4LRU_MaterialSize
@ C4LRU_Count
@ C4LRU_MaterialTex
@ C4LRU_Center
@ C4LRU_MatMapTex

Variable Documentation

◆ C4LR_BytesPerPx

const int C4LR_BytesPerPx = 3

Definition at line 76 of file C4LandscapeRender.h.

◆ C4LR_BytesPerSurface

const int C4LR_BytesPerSurface = 4

Definition at line 79 of file C4LandscapeRender.h.

◆ C4LR_SurfaceCount