Fixed camera

This commit is contained in:
YourWishes committed 2025-10-13 12:26:59 -05:00
1 parent 2c0fd84c72
commit 0c0650a2c3
6 files changed
+82 -66

No files matched your search

+9 -1
View File
@@ -20,7 +20,8 @@ typedef enum {
typedef enum {
CAMERA_VIEW_TYPE_MATRIX,
CAMERA_VIEW_TYPE_LOOKAT,
CAMERA_VIEW_TYPE_2D
CAMERA_VIEW_TYPE_2D,
CAMERA_VIEW_TYPE_LOOKAT_PIXEL_PERFECT
} cameraviewtype_t;
typedef struct {
@@ -36,6 +37,13 @@ typedef struct {
float_t up[3];
} lookat;
struct {
float_t offset[3];
float_t target[3];
float_t up[3];
float_t pixelsPerUnit;
} lookatPixelPerfect;
struct {
float_t position[2];
float_t zoom;