nuclear@1: #ifndef RENDERER_H_ nuclear@1: #define RENDERER_H_ nuclear@1: nuclear@1: #include "texture.h" nuclear@1: #include "level.h" nuclear@1: nuclear@1: class Renderer { nuclear@1: private: nuclear@3: Level *level; nuclear@4: Texture1D *blobtex; nuclear@3: Texture3D *leveltex; nuclear@3: unsigned int sdrprog; nuclear@3: nuclear@3: float fov, aspect; nuclear@1: nuclear@4: void update_blobtex(); nuclear@4: nuclear@1: public: nuclear@1: Renderer(); nuclear@1: ~Renderer(); nuclear@1: nuclear@3: bool init(Level *lvl); nuclear@1: void shutdown(); nuclear@1: nuclear@3: void set_fov(float fov); nuclear@3: void set_aspect(float aspect); nuclear@3: nuclear@5: void prepare(); nuclear@3: void render() const; nuclear@1: }; nuclear@1: nuclear@1: #endif // RENDERER_H_