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

A single 2D vertex with its own color, in design-canvas coordinates. More...

#include <Mesh.h>

Public Attributes

float x
 X position (design-canvas pixels).
 
float y
 Y position (design-canvas pixels).
 
PixelColor c
 Straight (non-premultiplied) RGBA color.
 

Detailed Description

A single 2D vertex with its own color, in design-canvas coordinates.

Meshes are lists of these, three per triangle. The per-vertex color lets one draw call carry gradients and soft (feathered) edges.

Definition at line 27 of file Mesh.h.

Member Data Documentation

◆ c

PixelColor MeshVertex::c

Straight (non-premultiplied) RGBA color.

Definition at line 30 of file Mesh.h.

◆ x

float MeshVertex::x

X position (design-canvas pixels).

Definition at line 28 of file Mesh.h.

◆ y

float MeshVertex::y

Y position (design-canvas pixels).

Definition at line 29 of file Mesh.h.


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