34 lines
774 B
C++
34 lines
774 B
C++
#ifndef SAVERENDERER_H_
|
|
#define SAVERENDERER_H_
|
|
#include "Config.h"
|
|
#ifdef OGLI
|
|
#include "graphics/OpenGLHeaders.h"
|
|
#endif
|
|
#include "common/Singleton.h"
|
|
#include <mutex>
|
|
|
|
class GameSave;
|
|
class VideoBuffer;
|
|
class Graphics;
|
|
class Simulation;
|
|
class Renderer;
|
|
|
|
class SaveRenderer: public Singleton<SaveRenderer> {
|
|
Graphics * g;
|
|
Simulation * sim;
|
|
Renderer * ren;
|
|
std::mutex renderMutex;
|
|
public:
|
|
SaveRenderer();
|
|
VideoBuffer * Render(GameSave * save, bool decorations = true, bool fire = true, Renderer *renderModeSource = nullptr);
|
|
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_ */
|