breakhack/src/camera.h

18 lines
286 B
C
Raw Normal View History

2017-12-01 16:03:19 +01:00
#ifndef CAMERA_H_
#define CAMERA_H_
#include <SDL2/SDL.h>
2017-12-03 11:09:57 +01:00
2017-12-01 16:03:19 +01:00
#include "position.h"
typedef struct {
Position pos;
SDL_Renderer *renderer;
} Camera;
Position camera_to_camera_position(Camera *cam, Position *pos);
2017-12-03 11:09:57 +01:00
void camera_follow_position(Camera*, Position*);
2017-12-01 16:03:19 +01:00
#endif // CAMERA_H_