28 lines
441 B
C
28 lines
441 B
C
#ifndef CAMMERA_H
|
|
#define CAMMERA_H
|
|
#include "tile.h"
|
|
#include "world.h"
|
|
#include <tart.h>
|
|
|
|
typedef struct {
|
|
int pos_x;
|
|
int pos_y;
|
|
int size_x;
|
|
int size_y;
|
|
int tileCount;
|
|
char x;
|
|
tile* frame;
|
|
world* w;
|
|
tart_window* tw;
|
|
} cammera;
|
|
|
|
|
|
int CammeraInit(cammera* c, int sx, int sy, int px, int py, world* w, tart_window* tw);
|
|
|
|
int CammeraRender(cammera*c);
|
|
|
|
void CammeraFree(cammera* c);
|
|
|
|
|
|
#endif // !CAMMERA_H
|