/** * Copyright (c) 2026 Dominic Masters * * This software is released under the MIT License. * https://opensource.org/licenses/MIT */ #pragma once #include "dusk.h" #include "display/color.h" #ifndef MESH_ENABLE_COLOR #define MESH_ENABLE_COLOR 0 #endif #define MESH_VERTEX_UV_SIZE 2 #define MESH_VERTEX_POS_SIZE 3 typedef struct { #if MESH_ENABLE_COLOR color_t color; #endif float_t uv[MESH_VERTEX_UV_SIZE]; float_t pos[MESH_VERTEX_POS_SIZE]; } meshvertex_t;