diff options
author | yinsimei | 2017-05-31 01:11:28 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-07-13 18:27:45 +0200 |
commit | 786e4c3dc3ce834002253f8c280826108f9a3225 (patch) | |
tree | 4e1e51e428e039b161bd4db45e0fe2a4dfda9185 /engines/sludge/backdrop.h | |
parent | 8c59f8deac6da7fd3b46234b70ca1cea428ca1f5 (diff) | |
download | scummvm-rg350-786e4c3dc3ce834002253f8c280826108f9a3225.tar.gz scummvm-rg350-786e4c3dc3ce834002253f8c280826108f9a3225.tar.bz2 scummvm-rg350-786e4c3dc3ce834002253f8c280826108f9a3225.zip |
SLUDGE: Refactor image loading function and apply in backdrop
Diffstat (limited to 'engines/sludge/backdrop.h')
-rw-r--r-- | engines/sludge/backdrop.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/sludge/backdrop.h b/engines/sludge/backdrop.h index 9b0832a023..3a88d33ddd 100644 --- a/engines/sludge/backdrop.h +++ b/engines/sludge/backdrop.h @@ -51,6 +51,7 @@ struct parallaxLayer { GLubyte *texture; GLuint textureName; #endif + Graphics::Surface surface; int width, height, speedX, speedY; bool wrapS, wrapT; unsigned short fileNum, fractionX, fractionY; @@ -59,7 +60,9 @@ struct parallaxLayer { parallaxLayer *prev; }; +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); @@ -82,9 +85,7 @@ bool getRGBIntoStack(unsigned int x, unsigned int y, stackHandler *sH); void killLightMap(); bool loadLightMap(int v); -#if 0 extern texture lightMap; -#endif // And background parallax scrolling |