SBgl 0.1.0
A graphics framework in C99
Loading...
Searching...
No Matches
sbgl_Vertex Struct Reference

Standard vertex structure for basic geometry rendering. Optimized for cache density (16 bytes). More...

#include <sbgl_types.h>

Data Fields

int16_t position [4]
 
uint32_t color
 
uint32_t _padding
 

Detailed Description

Standard vertex structure for basic geometry rendering. Optimized for cache density (16 bytes).

Definition at line 28 of file sbgl_types.h.

Field Documentation

◆ _padding

uint32_t sbgl_Vertex::_padding

Alignment padding. (4 bytes)

Definition at line 31 of file sbgl_types.h.

◆ color

uint32_t sbgl_Vertex::color

Packed RGBA8 color. (4 bytes)

Definition at line 30 of file sbgl_types.h.

◆ position

int16_t sbgl_Vertex::position[4]

SNORM position [3] + 1 padding. (8 bytes)

Definition at line 29 of file sbgl_types.h.


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