bloboland

annotate 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
rev   line source
nuclear@1 1 #ifndef RENDERER_H_
nuclear@1 2 #define RENDERER_H_
nuclear@1 3
nuclear@1 4 #include "texture.h"
nuclear@1 5 #include "level.h"
nuclear@1 6
nuclear@1 7 class Renderer {
nuclear@1 8 private:
nuclear@3 9 Level *level;
nuclear@4 10 Texture1D *blobtex;
nuclear@3 11 Texture3D *leveltex;
nuclear@3 12 unsigned int sdrprog;
nuclear@3 13
nuclear@3 14 float fov, aspect;
nuclear@1 15
nuclear@4 16 void update_blobtex();
nuclear@4 17
nuclear@1 18 public:
nuclear@1 19 Renderer();
nuclear@1 20 ~Renderer();
nuclear@1 21
nuclear@3 22 bool init(Level *lvl);
nuclear@1 23 void shutdown();
nuclear@1 24
nuclear@3 25 void set_fov(float fov);
nuclear@3 26 void set_aspect(float aspect);
nuclear@3 27
nuclear@5 28 void prepare();
nuclear@3 29 void render() const;
nuclear@1 30 };
nuclear@1 31
nuclear@1 32 #endif // RENDERER_H_