$darkmode
Suckless OGL 1.0.0
A lean, high-performance C11 PBR Renderer
Shader Struct Reference

Wrapper for an OpenGL program with uniform caching and automatic cleanup. More...

#include <shader.h>

Collaboration diagram for Shader:
[legend]

Data Fields

GLuint program
 
char * name
 
UniformEntryentries
 
int entry_count
 
int entry_capacity
 
bool silent_warnings
 
int warning_count
 

Detailed Description

Wrapper for an OpenGL program with uniform caching and automatic cleanup.

Field Documentation

◆ entries

UniformEntry* Shader::entries

Sorted array of cached uniforms.

◆ entry_capacity

int Shader::entry_capacity

Allocation size.

◆ entry_count

int Shader::entry_count

Number of active uniforms.

◆ name

char* Shader::name

Descriptive name for debugging (owned).

◆ program

GLuint Shader::program

OpenGL Program handle.

◆ silent_warnings

bool Shader::silent_warnings

If true, missing uniforms won't log errors.

◆ warning_count

int Shader::warning_count

Internal counter for log throttling.


The documentation for this struct was generated from the following file: