2012-04-03 11:08:56 -05:00
|
|
|
/*
|
|
|
|
* SaveRenderer.h
|
|
|
|
*
|
|
|
|
* Created on: Apr 3, 2012
|
|
|
|
* Author: Simon
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef SAVERENDERER_H_
|
|
|
|
#define SAVERENDERER_H_
|
|
|
|
|
|
|
|
#include "Singleton.h"
|
|
|
|
#include "search/Thumbnail.h"
|
2012-06-05 14:08:35 -05:00
|
|
|
#include "client/GameSave.h"
|
2012-04-03 11:08:56 -05:00
|
|
|
|
|
|
|
class Graphics;
|
|
|
|
class Simulation;
|
|
|
|
class Renderer;
|
|
|
|
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_ */
|