diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-01-27 09:38:56 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-01-27 09:38:56 (GMT) |
| commit | ebd80c73de6b02e1fcf731aa0f377b6085128e57 (patch) | |
| tree | 24c380dbfbde4c3dc34dc1f995f0ad2b177b6e7a /src/Renderer.h | |
| parent | e84f0fc6e5301265708a99b13ab898ce45422611 (diff) | |
| download | powder-ebd80c73de6b02e1fcf731aa0f377b6085128e57.zip powder-ebd80c73de6b02e1fcf731aa0f377b6085128e57.tar.gz | |
Some inlines and Checkbox ui component
Diffstat (limited to 'src/Renderer.h')
| -rw-r--r-- | src/Renderer.h | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/src/Renderer.h b/src/Renderer.h index 8592e41..d43e0cb 100644 --- a/src/Renderer.h +++ b/src/Renderer.h @@ -1,6 +1,7 @@ #ifndef RENDERER_H #define RENDERER_H +#include <vector> #include "Config.h" #include "simulation/Simulation.h" #include "Graphics.h" @@ -21,11 +22,10 @@ typedef struct gcache_item gcache_item; class Renderer { public: - //TODO: Vectors! - unsigned int *render_modes; + std::vector<unsigned int> render_modes; unsigned int render_mode; unsigned int colour_mode; - unsigned int *display_modes; + std::vector<unsigned int> display_modes; unsigned int display_mode; // unsigned char fire_r[YRES/CELL][XRES/CELL]; @@ -40,9 +40,10 @@ public: Simulation * sim; Graphics * g; gcache_item *graphicscache; - // - void draw_walls(); - void render_signs(); + + //Renderers + void DrawWalls(); + void DrawSigns(); void render_gravlensing(); void render_fire(); void prepare_alpha(int size, float intensity); @@ -51,9 +52,19 @@ public: void draw_air(); void draw_grav(); void draw_other(); - void init_display_modes(); + + //... void get_sign_pos(int i, int *x0, int *y0, int *w, int *h); - void prepare_graphicscache(); + + //Display mode modifiers + void CompileDisplayMode(); + void CompileRenderMode(); + void AddRenderMode(unsigned int mode); + void RemoveRenderMode(unsigned int mode); + void AddDisplayMode(unsigned int mode); + void RemoveDisplayMode(unsigned int mode); + void SetColourMode(unsigned int mode); + Renderer(Graphics * g, Simulation * sim); ~Renderer(); }; |
