add display function

This commit is contained in:
milang 2019-09-07 20:01:58 +02:00
parent 94145db9dc
commit 03166b0a17
No known key found for this signature in database
GPG Key ID: D287C9D6C33D9035
2 changed files with 12 additions and 0 deletions

View File

@ -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

View File

@ -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]);
}