Start implementing clipping triangles

This commit is contained in:
2024-07-10 00:18:10 +01:00
parent ae072ec70e
commit 3c293198bb
2 changed files with 47 additions and 8 deletions

View File

@@ -41,7 +41,8 @@ typedef struct {
list_scene_triangle_t *triangles;
} model_t;
#define NULL_MODEL ((model_t){0})
#define IS_NULL_MODEL(MODEL) (MODEL.vertices == NULL && MODEL.triangles == NULL)
#define IS_NULL_MODEL(MODEL_PTR) \
(MODEL_PTR->vertices == NULL && MODEL_PTR->triangles == NULL)
typedef struct {
f32 scale;