8 #include <linmath.h/linmath.h>
9 #include "client/mesh.h"
10 #include "client/texture.h"
11 #include "client/vertex.h"
17 } __attribute__((packed)) Vertex3DPosition;
21 } __attribute__((packed)) Vertex3DTextureCoordinates;
25 } __attribute__((packed)) Vertex3DColor;
29 Vertex3DPosition position;
30 Vertex3DTextureCoordinates textureCoordinates;
32 } __attribute__((packed)) Vertex3D;
42 v3f32 pos, rot, scale;
50 ObjectFace *current_face;
54 Object *object_create();
55 void object_delete(Object *obj);
56 void object_set_texture(Object *obj, Texture *texture);
57 void object_add_vertex(Object *obj, Vertex3D *vertex);
58 bool object_add_to_scene(Object *obj);
59 void object_transform(Object *obj);
60 void object_render(Object *obj, GLint loc_model);