libgui 2.01
libgui is a GUI library for the GameCube, Wii, and Wii U
 
Loading...
Searching...
No Matches
Mesh.h
1/****************************************************************************
2 * Platform Abstraction Layer
3 * Daryl Borth 2026
4 * Mesh.h
5 *
6 * Plain color and vertex types shared by the video interfaces and the
7 * platform-agnostic shape tessellator (GuiGeometry). This header includes
8 * nothing platform specific (no FreeType, no GX/GX2), so it can be built on
9 * a host machine for tests.
10 ***************************************************************************/
11#pragma once
12#include <stdint.h>
13
16typedef struct {
17 uint8_t r;
18 uint8_t g;
19 uint8_t b;
20 uint8_t a;
22
27struct MeshVertex {
28 float x;
29 float y;
31};
A single 2D vertex with its own color, in design-canvas coordinates.
Definition Mesh.h:27
float y
Y position (design-canvas pixels).
Definition Mesh.h:29
float x
X position (design-canvas pixels).
Definition Mesh.h:28
PixelColor c
Straight (non-premultiplied) RGBA color.
Definition Mesh.h:30
8-bit-per-channel RGBA color used by the video interfaces.
Definition Mesh.h:16
uint8_t g
Green color component.
Definition Mesh.h:18
uint8_t r
Red color component.
Definition Mesh.h:17
uint8_t b
Blue color component.
Definition Mesh.h:19
uint8_t a
Alpha component.
Definition Mesh.h:20