2012-04-03 11:08:56 -05:00
|
|
|
/*
|
|
|
|
* SaveRenderer.h
|
|
|
|
*
|
|
|
|
* Created on: Apr 3, 2012
|
|
|
|
* Author: Simon
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef SAVERENDERER_H_
|
|
|
|
#define SAVERENDERER_H_
|
2012-08-12 16:40:44 -05:00
|
|
|
#include "graphics/OpenGLHeaders.h"
|
2012-04-03 11:08:56 -05:00
|
|
|
#include "Singleton.h"
|
|
|
|
|
2012-08-12 16:32:57 -05:00
|
|
|
class GameSave;
|
|
|
|
class Thumbnail;
|
2012-04-03 11:08:56 -05:00
|
|
|
class Graphics;
|
|
|
|
class Simulation;
|
|
|
|
class Renderer;
|
2012-08-12 16:32:57 -05:00
|
|
|
|
2012-04-03 11:08:56 -05:00
|
|
|
class SaveRenderer: public Singleton<SaveRenderer> {
|
|
|
|
Graphics * g;
|
|
|
|
Simulation * sim;
|
|
|
|
Renderer * ren;
|
|
|
|
public:
|
|
|
|
SaveRenderer();
|
2012-06-05 14:08:35 -05:00
|
|
|
Thumbnail * Render(GameSave * save);
|
|
|
|
Thumbnail * Render(unsigned char * saveData, int saveDataSize);
|
2012-04-03 11:08:56 -05:00
|
|
|
virtual ~SaveRenderer();
|
2012-06-25 16:26:53 -05:00
|
|
|
|
|
|
|
private:
|
|
|
|
#if defined(OGLR) || defined(OGLI)
|
|
|
|
GLuint fboTex, fbo;
|
|
|
|
#endif
|
2012-04-03 11:08:56 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* SAVERENDERER_H_ */
|