diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-04-03 13:07:39 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-04-03 13:07:39 (GMT) |
| commit | 73c5082cbcdd3a986765723bd4182e45386ce766 (patch) | |
| tree | 99a0040636c9700a893044ebc36d949fa1da5873 /src/simulation/SaveLoader.h | |
| parent | efddc12e5d2aadc5eee1927245ad38b9dee89aed (diff) | |
| download | powder-73c5082cbcdd3a986765723bd4182e45386ce766.zip powder-73c5082cbcdd3a986765723bd4182e45386ce766.tar.gz | |
Super, megaheavyweight thumbnail renderer
Diffstat (limited to 'src/simulation/SaveLoader.h')
| -rw-r--r-- | src/simulation/SaveLoader.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/simulation/SaveLoader.h b/src/simulation/SaveLoader.h index 1fb2143..2e92817 100644 --- a/src/simulation/SaveLoader.h +++ b/src/simulation/SaveLoader.h @@ -12,12 +12,16 @@ class SaveLoader { public: - static int LoadSave(unsigned char * data, int dataLength, Simulation * sim, bool replace, int x, int y); - static unsigned char * BuildSave(int & dataLength, Simulation * sim, int orig_x0, int orig_y0, int orig_w, int orig_h); - static int OPSLoadSave(unsigned char * data, int dataLength, Simulation * sim); - static unsigned char * OPSBuildSave(int & dataLength, Simulation * sim, int orig_x0, int orig_y0, int orig_w, int orig_h); - static int PSVLoadSave(unsigned char * data, int dataLength, Simulation * sim, bool replace, int x, int y); - static unsigned char * PSVBuildSave(int & dataLength, Simulation * sim, int orig_x0, int orig_y0, int orig_w, int orig_h); + static int Info(unsigned char * data, int dataLength, int & width, int & height); + static int Load(unsigned char * data, int dataLength, Simulation * sim, bool replace, int x, int y); + static unsigned char * Build(int & dataLength, Simulation * sim, int orig_x0, int orig_y0, int orig_w, int orig_h); +private: + static int OPSInfo(unsigned char * data, int dataLength, int & width, int & height); + static int OPSLoad(unsigned char * data, int dataLength, Simulation * sim); + static unsigned char * OPSBuild(int & dataLength, Simulation * sim, int orig_x0, int orig_y0, int orig_w, int orig_h); + static int PSVInfo(unsigned char * data, int dataLength, int & width, int & height); + static int PSVLoad(unsigned char * data, int dataLength, Simulation * sim, bool replace, int x, int y); + static unsigned char * PSVBuild(int & dataLength, Simulation * sim, int orig_x0, int orig_y0, int orig_w, int orig_h); }; #endif /* SAVELOADER_H_ */ |
