diff options
Diffstat (limited to 'engines/sludge/sprites.h')
-rw-r--r-- | engines/sludge/sprites.h | 37 |
1 files changed, 22 insertions, 15 deletions
diff --git a/engines/sludge/sprites.h b/engines/sludge/sprites.h index 2a617bb5ee..067c84a2de 100644 --- a/engines/sludge/sprites.h +++ b/engines/sludge/sprites.h @@ -51,23 +51,24 @@ public: GLuint *tex_names; GLuint *burnTex_names; #endif - int *tex_w, * tex_h; + int *tex_w, *tex_h; int numTextures; unsigned char originalRed, originalGreen, originalBlue, total; - spritePalette(): pal(0), r(0), g(0), b(0)/*, tex_names(0), burnTex_names(0)*/ - , tex_w(0), tex_h(0), numTextures(0) - , total(0) {} + spritePalette() : + pal(0), r(0), g(0), b(0)/*, tex_names(0), burnTex_names(0)*/ + , tex_w(0), tex_h(0), numTextures(0), total(0) { + } ~spritePalette() { - delete [] pal; - delete [] r; - delete [] g; - delete [] b; + delete[] pal; + delete[] r; + delete[] g; + delete[] b; // delete [] tex_names; // delete [] burnTex_names; - delete [] tex_w; - delete [] tex_h; + delete[] tex_w; + delete[] tex_h; } }; @@ -84,13 +85,19 @@ bool loadSpriteBank(char *filename, spriteBank &loadhere); bool loadSpriteBank(int fileNum, spriteBank &loadhere, bool isFont); void fontSprite(int x1, int y1, sprite &single, const spritePalette &fontPal); -void flipFontSprite(int x1, int y1, sprite &single, const spritePalette &fontPal); +void flipFontSprite(int x1, int y1, sprite &single, + const spritePalette &fontPal); -bool scaleSprite(sprite &single, const spritePalette &fontPal, onScreenPerson *thisPerson, bool mirror); -void pasteSpriteToBackDrop(int x1, int y1, sprite &single, const spritePalette &fontPal); +bool scaleSprite(sprite &single, const spritePalette &fontPal, + onScreenPerson *thisPerson, bool mirror); +void pasteSpriteToBackDrop(int x1, int y1, sprite &single, + const spritePalette &fontPal); bool reserveSpritePal(spritePalette &sP, int n); -void fixScaleSprite(int x1, int y1, sprite &single, const spritePalette &fontPal, onScreenPerson *thisPerson, const int camX, const int camY, bool); -void burnSpriteToBackDrop(int x1, int y1, sprite &single, const spritePalette &fontPal); +void fixScaleSprite(int x1, int y1, sprite &single, + const spritePalette &fontPal, onScreenPerson *thisPerson, + const int camX, const int camY, bool); +void burnSpriteToBackDrop(int x1, int y1, sprite &single, + const spritePalette &fontPal); } // End of namespace Sludge |