Files
djstdlib/gfx/world/camera.h
2026-06-04 18:22:30 +02:00

22 lines
489 B
C

#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