40c2ff27b0
The crash when opening saves on mac is definitely something to do with the threading, and i'd rather just test this first to see if it fixes it Copied from my mod almost entirely as-is, with the changes to HTTP.cpp included, also added locks into Download.cpp even though it is probably overkill
31 lines
675 B
C++
31 lines
675 B
C++
#ifndef SAVERENDERER_H_
|
|
#define SAVERENDERER_H_
|
|
#ifdef OGLI
|
|
#include "graphics/OpenGLHeaders.h"
|
|
#endif
|
|
#include "common/Singleton.h"
|
|
|
|
class GameSave;
|
|
class VideoBuffer;
|
|
class Graphics;
|
|
class Simulation;
|
|
class Renderer;
|
|
|
|
class SaveRenderer: public Singleton<SaveRenderer> {
|
|
Graphics * g;
|
|
Simulation * sim;
|
|
Renderer * ren;
|
|
public:
|
|
SaveRenderer();
|
|
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_ */
|