change object.h location and update contents
This commit is contained in:
parent
c01a6cd9c0
commit
f69227192d
|
@ -23,4 +23,16 @@ typedef struct
|
|||
fe_vertex old_centre; // Avoid changes during one frame :E
|
||||
} fe_object;
|
||||
|
||||
void fe_object_init(fe_object * object); // Create the object on the zone you allocated
|
||||
|
||||
void fe_object_set_points(fe_object * object, fe_ivertex * points, uint32_t n, bool copy);
|
||||
|
||||
void fe_object_set_faces(fe_object * object, fe_triangle * faces, uint32_t n, bool copy);
|
||||
|
||||
void fe_object_delete(fe_object * object);
|
||||
|
||||
void fe_object_display(fe_object * object);
|
||||
|
||||
fe_ipoint* fe_object_get_vertex(const fe_object * object, const int n);
|
||||
|
||||
#endif
|
|
@ -1,35 +0,0 @@
|
|||
#ifndef FE_OBJECT
|
||||
#define FE_OBJECT
|
||||
|
||||
#include <fxengine/space.h>
|
||||
#include <fxengine/triangle.h>
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
|
||||
typedef struct
|
||||
{
|
||||
fe_triangle * faces;
|
||||
uint32_t f_size;
|
||||
bool f_owner;
|
||||
fe_ivertex * points;
|
||||
uint32_t p_size;
|
||||
bool p_owner;
|
||||
} fe_object;
|
||||
|
||||
void fe_object_init(fe_object * object);
|
||||
|
||||
void fe_object_set_points(fe_object * object, fe_ivertex * points, uint32_t n, bool copy);
|
||||
|
||||
void fe_object_set_faces(fe_object * object, fe_triangle * faces, uint32_t n, bool copy);
|
||||
|
||||
void fe_object_delete(fe_object * object);
|
||||
|
||||
void fe_object_display(fe_object * object);
|
||||
|
||||
void fe_object_debug(const fe_object * object);
|
||||
|
||||
fe_ipoint* fe_object_get_vertex(const fe_object * object, const int n);
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue