Browse files

SLUDGE: Objectify graphic classes

  • Loading branch information...
yinsimei committed Jul 19, 2017
1 parent 0e7d9b4 commit e617a53608976062073694a0847335a7ea74469e

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -31,15 +31,6 @@
namespace Sludge {
enum {
extern uint winWidth, winHeight, sceneWidth, sceneHeight;
extern int lightMapMode;
* parallax layers can scroll at different speeds
* to the background image, giving the illusion of
@@ -56,6 +47,7 @@ class Parallax {
typedef Common::List<ParallaxLayer *> ParallaxLayers;
void kill();
@@ -64,35 +56,11 @@ class Parallax {
void draw();
ParallaxLayers _parallaxLayers;
void killAllBackDrop();
bool resizeBackdrop(int x, int y);
bool killResizeBackdrop(int x, int y);
void killBackDrop();
void loadBackDrop(int fileNum, int x, int y);
void mixBackDrop(int fileNum, int x, int y);
void drawBackDrop();
void blankScreen(int x1, int y1, int x2, int y2);
void darkScreen();
void saveHSI(Common::WriteStream *stream);
bool loadHSI(Common::SeekableReadStream *stream, int, int, bool);
bool mixHSI(Common::SeekableReadStream *stream, int x = 0, int y = 0);
void drawHorizontalLine(uint, uint, uint);
void drawVerticalLine(uint, uint, uint);
void hardScroll(int distance);
bool getRGBIntoStack(uint x, uint y, stackHandler *sH);
// Also the light map stuff
void killLightMap();
bool loadLightMap(int v);
extern Graphics::Surface lightMap;
void nosnapshot();
bool snapshot();
void saveSnapshot(Common::WriteStream *stream);
bool restoreSnapshot(Common::SeekableReadStream *stream);
inline int sortOutPCamera(int cX, int fX, int sceneMax, int boxMax) {
return (fX == 65535) ? (sceneMax ? ((cX * boxMax) / sceneMax) : 0) : ((cX * fX) / 100);
} // End of namespace Sludge
Oops, something went wrong.

0 comments on commit e617a53

Please sign in to comment.