add display function
This commit is contained in:
parent
94145db9dc
commit
03166b0a17
|
@ -26,4 +26,6 @@ void fxe_object_set_faces(fxe_object * object, render_triangle * faces, uint32_t
|
|||
|
||||
void fxe_object_delete(fxe_object * object);
|
||||
|
||||
void fxe_object_display(fxe_object * object);
|
||||
|
||||
#endif
|
||||
|
|
10
src/object.c
10
src/object.c
|
@ -52,3 +52,13 @@ void fxe_object_delete(fxe_object * object)
|
|||
|
||||
fxe_object_init(object);
|
||||
}
|
||||
|
||||
|
||||
void fxe_object_display(fxe_object * object)
|
||||
{
|
||||
for (int i = 0; i < object->p_size; i++)
|
||||
render_translate(&object->points[i]);
|
||||
|
||||
for (int i = 0; i < object->f_size; i++)
|
||||
render_display_triangle(&object->faces[i]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue