separate the rest of general drawing code

This commit is contained in:
veclavtalica committed 2025-01-03 21:59:00 +03:00
1 parent 472a0657f3
commit 4f2b8ccd01
5 files changed
+378 -376

No files matched your search

+3 -1
View File
@@ -68,7 +68,9 @@ TWN_API void draw_triangle(char const *texture,
TWN_API void draw_billboard(const char *path,
Vec3 position,
Vec2 size);
Vec2 size,
Color color, /* optional, default: all 255 */
bool cylindrical); /* optional, default: false */
/* sets a perspective 3d camera to be used for all 3d commands */
TWN_API void draw_camera(Vec3 position, float fov, Vec3 up, Vec3 direction);
+1 -1
View File
@@ -49,7 +49,7 @@ typedef struct Rect {
float h;
} Rect;
/* TODO: remove from here? */
typedef struct Matrix4 {
Vec4 row[4];
} Matrix4;