15 lines
235 B
C
15 lines
235 B
C
|
#ifndef CAMERA_H_
|
||
|
#define CAMERA_H_
|
||
|
|
||
|
#include <SDL2/SDL.h>
|
||
|
#include "position.h"
|
||
|
|
||
|
typedef struct {
|
||
|
Position pos;
|
||
|
SDL_Renderer *renderer;
|
||
|
} Camera;
|
||
|
|
||
|
Position camera_to_camera_position(Camera *cam, Position *pos);
|
||
|
|
||
|
#endif // CAMERA_H_
|