bloboland

view src/renderer.h @ 5:2f4406cc341e

meh
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 19 Dec 2012 02:37:20 +0200
parents 9021a906c5d3
children
line source
1 #ifndef RENDERER_H_
2 #define RENDERER_H_
4 #include "texture.h"
5 #include "level.h"
7 class Renderer {
8 private:
9 Level *level;
10 Texture1D *blobtex;
11 Texture3D *leveltex;
12 unsigned int sdrprog;
14 float fov, aspect;
16 void update_blobtex();
18 public:
19 Renderer();
20 ~Renderer();
22 bool init(Level *lvl);
23 void shutdown();
25 void set_fov(float fov);
26 void set_aspect(float aspect);
28 void prepare();
29 void render() const;
30 };
32 #endif // RENDERER_H_