adding gfx and ui stuff

This commit is contained in:
Daniel Ledda
2026-06-04 18:22:30 +02:00
parent d676c50961
commit 4dfac3f82f
48 changed files with 26734 additions and 3 deletions

21
gfx/world/camera.h Normal file
View File

@@ -0,0 +1,21 @@
#ifndef DJSTDLIB_GFX_CAMERA_H
#define DJSTDLIB_GFX_CAMERA_H
#include "../../core.h"
#include "../../vendor/raymath.h"
typedef struct Camera Camera;
struct Camera {
Matrix view;
Matrix proj;
Vec3 pos;
Vec3 up;
Vec3 target;
};
Camera createCamera(int32 width, int32 height);
void cameraSetAspect(Camera *c, int32 width, int32 height);
void cameraLookAt(Camera *c, float x, float y, float z);
void cameraSetUp(Camera *c, real32 up_x, real32 up_y, real32 up_z);
#endif