adding gfx and ui stuff
This commit is contained in:
21
gfx/world/camera.h
Normal file
21
gfx/world/camera.h
Normal 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
|
||||
Reference in New Issue
Block a user