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

Persistent state for the UI system. More...

#include <ui.h>

Collaboration diagram for UIContext:
[legend]

Data Fields

GLuint texture
 
Shadershader
 
Shaderspinner_shader
 
GLuint vao
 
GLuint vbo
 
GlyphInfo cdata [96]
 
float font_size
 
UIVertex batch_vertices [8192]
 
int batch_count
 
int current_screen_width
 
int current_screen_height
 
int batch_active
 
GLuint current_texture
 

Detailed Description

Persistent state for the UI system.

Field Documentation

◆ batch_active

int UIContext::batch_active

Is a batch currently active?

◆ batch_count

int UIContext::batch_count

Current vertex count in batch

◆ batch_vertices

UIVertex UIContext::batch_vertices[8192]

Batch buffer

◆ cdata

GlyphInfo UIContext::cdata[96]

Metrics for ASCII 32 - 126.

◆ current_screen_height

int UIContext::current_screen_height

Screen height for current batch

◆ current_screen_width

int UIContext::current_screen_width

Screen width for current batch

◆ current_texture

GLuint UIContext::current_texture

Currently bound texture in the batch

◆ font_size

float UIContext::font_size

Global scaling factor.

◆ shader

Shader* UIContext::shader

Main UI shader.

◆ spinner_shader

Shader* UIContext::spinner_shader

Specialized shader for loading animations.

◆ texture

GLuint UIContext::texture

Font atlas texture handle.

◆ vao

GLuint UIContext::vao

◆ vbo

GLuint UIContext::vbo

Geometry buffers.


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