Entropie git · main
git clone https://git.christianimmanuel.de/games/Entropie.gitwget https://git.christianimmanuel.de/games/Entropie/archive/Entropie.tar.gzcamera.h raw
#ifndef CAMERA_H
#define CAMERA_H
typedef struct {
// Calculate the camera offset once
float offset_x;
float offset_y;
float center_x;
float center_y;
// Calculate the window bounds in terms of tiles
int min_x;
int max_x;
int min_y;
int max_y;
float view_w, view_h;
void* render_object;
} Camera;
void setCamera(Camera* camera);
#endif