The-Powder-Toy/src/simulation/SaveRenderer.h

31 lines
668 B
C
Raw Normal View History

#ifndef SAVERENDERER_H_
#define SAVERENDERER_H_
#ifdef OGLI
2012-08-12 16:40:44 -05:00
#include "graphics/OpenGLHeaders.h"
#endif
#include "Singleton.h"
class GameSave;
2013-03-15 07:59:55 -05:00
class VideoBuffer;
class Graphics;
class Simulation;
class Renderer;
class SaveRenderer: public Singleton<SaveRenderer> {
Graphics * g;
Simulation * sim;
Renderer * ren;
public:
SaveRenderer();
2013-03-15 07:59:55 -05:00
VideoBuffer * Render(GameSave * save, bool decorations = true, bool fire = true);
VideoBuffer * Render(unsigned char * saveData, int saveDataSize, bool decorations = true, bool fire = true);
virtual ~SaveRenderer();
private:
#if defined(OGLR) || defined(OGLI)
GLuint fboTex, fbo;
#endif
};
#endif /* SAVERENDERER_H_ */