$darkmode
Wrapper for an OpenGL program with uniform caching and automatic cleanup. More...
#include <shader.h>
Data Fields | |
| GLuint | program |
| char * | name |
| UniformEntry * | entries |
| int | entry_count |
| int | entry_capacity |
| bool | silent_warnings |
| int | warning_count |
Wrapper for an OpenGL program with uniform caching and automatic cleanup.
| UniformEntry* Shader::entries |
Sorted array of cached uniforms.
| int Shader::entry_capacity |
Allocation size.
| int Shader::entry_count |
Number of active uniforms.
| char* Shader::name |
Descriptive name for debugging (owned).
| GLuint Shader::program |
OpenGL Program handle.
| bool Shader::silent_warnings |
If true, missing uniforms won't log errors.
| int Shader::warning_count |
Internal counter for log throttling.