libgui 2.01
libgui is a GUI library for the GameCube, Wii, and Wii U
 
Loading...
Searching...
No Matches
WutMesh Struct Reference

A mesh kept in GPU-readable vertex buffers across frames (ImageRenderer::createMesh()). More...

#include <WutVideoDriver.h>

Public Attributes

float * positions
 3 floats per vertex (x, y, 0)
 
uint8_t * colors
 RGBA8 per vertex.
 
uint32_t count
 Number of vertices.
 
WutMesh * next
 Link in the retired list.
 

Detailed Description

A mesh kept in GPU-readable vertex buffers across frames (ImageRenderer::createMesh()).

Positions are NDC for an instance at the design canvas origin at scale 1, so a draw only sets the shader's offset and scale to place it.

Definition at line 30 of file WutVideoDriver.h.

Member Data Documentation

◆ colors

uint8_t* WutMesh::colors

RGBA8 per vertex.

Definition at line 33 of file WutVideoDriver.h.

◆ count

uint32_t WutMesh::count

Number of vertices.

Definition at line 34 of file WutVideoDriver.h.

◆ next

WutMesh* WutMesh::next

Link in the retired list.

Definition at line 35 of file WutVideoDriver.h.

◆ positions

float* WutMesh::positions

3 floats per vertex (x, y, 0)

Definition at line 32 of file WutVideoDriver.h.


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