diff options
Diffstat (limited to 'src/render/llr_impl.h')
| -rw-r--r-- | src/render/llr_impl.h | 31 | 
1 files changed, 0 insertions, 31 deletions
diff --git a/src/render/llr_impl.h b/src/render/llr_impl.h index 3a5455a..9d70843 100644 --- a/src/render/llr_impl.h +++ b/src/render/llr_impl.h  | |||
| @@ -10,43 +10,12 @@ | |||
| 10 | #include <stddef.h> | 10 | #include <stddef.h> | 
| 11 | #include <stdint.h> | 11 | #include <stdint.h> | 
| 12 | 12 | ||
| 13 | typedef struct Geometry Geometry; | ||
| 14 | typedef struct GfxCore GfxCore; | 13 | typedef struct GfxCore GfxCore; | 
| 15 | typedef struct IBL IBL; | 14 | typedef struct IBL IBL; | 
| 16 | typedef struct Material Material; | 15 | typedef struct Material Material; | 
| 17 | typedef struct ShaderProgram ShaderProgram; | 16 | typedef struct ShaderProgram ShaderProgram; | 
| 18 | typedef struct Texture Texture; | 17 | typedef struct Texture Texture; | 
| 19 | 18 | ||
| 20 | /// An environment light. | ||
| 21 | typedef struct EnvironmentLight { | ||
| 22 | const Texture* environment_map; | ||
| 23 | const Texture* irradiance_map; // Renderer implementation. | ||
| 24 | const Texture* prefiltered_environment_map; // Renderer implementation. | ||
| 25 | int max_reflection_lod; // Mandatory when prefiltered_environment_map is | ||
| 26 | // given. | ||
| 27 | } EnvironmentLight; | ||
| 28 | |||
| 29 | /// A scene light. | ||
| 30 | typedef struct Light { | ||
| 31 | LightType type; | ||
| 32 | union { | ||
| 33 | EnvironmentLight environment; | ||
| 34 | }; | ||
| 35 | } Light; | ||
| 36 | |||
| 37 | typedef struct Material { | ||
| 38 | AlphaMode alpha_mode; | ||
| 39 | float alpha_cutoff; | ||
| 40 | int8_t num_uniforms; | ||
| 41 | ShaderUniform uniforms[GFX_MAX_UNIFORMS_PER_MATERIAL]; | ||
| 42 | } Material; | ||
| 43 | |||
| 44 | typedef struct Mesh { | ||
| 45 | const Geometry* geometry; | ||
| 46 | const Material* material; | ||
| 47 | ShaderProgram* shader; // TODO: Move this back to Material? | ||
| 48 | } Mesh; | ||
| 49 | |||
| 50 | /// Immediate mode renderer. | 19 | /// Immediate mode renderer. | 
| 51 | /// | 20 | /// | 
| 52 | /// The renderer caches state changes in memory and only programs the underlying | 21 | /// The renderer caches state changes in memory and only programs the underlying | 
