blob: 21d6de8c96e70ce29b9b9f67ce6f56d19f740fac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#ifndef WORLD_H
#define WORLD_H
#include <common.h>
class World {
private:
struct line_t {
float y;
unsigned char color;
} __attribute__ ((packed)) *line;
unsigned int lineCount;
int x_start;
public:
World(unsigned int width);
~World(void);
void draw(vec2 *vec);
void detect(vec2 *v,vec2 *vel,const float width);
};
#endif // WORLD_H
|