/* * Copyright (c) 2021, Jesse Buhagiar * Copyright (c) 2021, Mathieu Gaillard * Copyright (c) 2021, Pedro Pereira * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include // Point in 3D space struct Vertex { GLfloat x; GLfloat y; GLfloat z; }; struct TexCoord { GLfloat u; GLfloat v; }; // A triangle defines a single "face" of a mesh struct Triangle { GLuint a; GLuint b; GLuint c; GLuint tex_coord_index0; GLuint tex_coord_index1; GLuint tex_coord_index2; GLuint normal_index0; GLuint normal_index1; GLuint normal_index2; };