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
15typedef struct gf_mesh_t gf_mesh_t;
16
17/* External library */
18
19/* Engine */
20#include <gf_type/math.h>
21#include <gf_type/graphic.h>
22
23/* Standard */
24
36GF_DECLARE_TYPE(mesh_triangle, {
37 gf_math_vector_t points[3];
39});
40
52GF_DECLARE_TYPE(mesh, {
55});
56#else
57typedef void gf_mesh_t;
58typedef void gf_mesh_triangle_t;
59#endif
60
61#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:55
int triangle_count
Triangle count.
Definition mesh.h:55
gf_mesh_triangle_t * triangles
Triangles.
Definition mesh.h:55
Triangle.
Definition mesh.h:39