diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2015-09-18 17:26:28 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2015-09-18 17:26:28 -0400 |
commit | 6c2fa9e1b372f71d311b376e689961dad6aaa036 (patch) | |
tree | 39e8b2f07b6e04d3fb2e584ff4738150f2aa95de /include/world.h | |
parent | a94372de8746229705e38eea66ce42f0a1ad3dba (diff) |
forgot stuff
Diffstat (limited to 'include/world.h')
-rw-r--r-- | include/world.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/world.h b/include/world.h new file mode 100644 index 0000000..21d6de8 --- /dev/null +++ b/include/world.h @@ -0,0 +1,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 |