GoldFish Engine
Quite simple and lightweight game engine
Loading...
Searching...
No Matches
mesh.h
Go to the documentation of this file.
1
7#ifndef __GF_TYPE_MESH_H__
8#define __GF_TYPE_MESH_H__
9
10#include <gf_pre.h>
11#include <gf_macro.h>
12
13#ifdef GF_EXPOSE_MESH
14/* External library */
15
16/* Engine */
17#include <gf_type/math.h>
18#include <gf_type/graphic.h>
19
20/* Standard */
21
33GF_DECLARE_TYPE(triangle, {
34 gf_math_vector_t points[3];
36});
37
49GF_DECLARE_TYPE(mesh, {
50 gf_triangle_t* triangles;
51 int triangle_count;
52});
53#else
54typedef void gf_mesh_t;
55typedef void gf_triangle_t;
56#endif
57
58#endif
#define GF_DECLARE_TYPE(n, b)
Macro to define engine type shorter.
Definition gf_macro.h:172
Required headers before anything.
Type definitions related to graphic interface.
Type definitions related to math.
double gf_math_vector_t[4]
Vector.
Definition math.h:25
Mesh.
Definition mesh.h:52
Triangle.
Definition mesh.h:36