Debian Codegraph @

src/io/gfx/sprite.h

raw symbols SCIP
1
2 /**
3 *
4 * @file sprite.h
5 *
6 * Part of the OpenJazz project
7 *
8 * @par History:
9 * - 23rd August 2005: Created OpenJazz.h
10 * - 31st January 2006: Created level.h from parts of OpenJazz.h
11 * - 19th March 2009: Created sprite.h from parts of level.h
12 * - 26th July 2009: Created anim.h from parts of sprite.h
13 *
14 * @par Licence:
15 * Copyright (c) 2005-2013 AJ Thomson
16 *
17 * OpenJazz is distributed under the terms of
18 * the GNU General Public License, version 2.0
19 *
20 */
21
22
23 #ifndef _SPRITE_H
24 #define _SPRITE_Hcxx . . $ `src/io/gfx/sprite.h:24:9`!
25
26 #include "OpenJazz.h"cxx . . $ `<file>/src/OpenJazz.h`/
27
28 // Class
29
30 struct SDL_Surfacecxx . . $ SDL_Surface#;
31 struct SDL_Colorcxx . . $ SDL_Color#;
32
33 /// Sprite
34 class Spritecxx . . $ Sprite# {
35
36 private:
37 SDL_Surfacecxx . . $ SDL_Surface#* pixelscxx . . $ Sprite#pixels.; ///< Sprite image
38 short int xOffsetcxx . . $ Sprite#xOffset.; ///< Horizontal offset
39 short int yOffsetcxx . . $ Sprite#yOffset.; ///< Vertical offset
40
41 public:
42 Spritecxx . . $ Sprite#Sprite(49f6e7a06ebc5aa8). ();
43 ~cxx . . $ Sprite#`~Sprite`(49f6e7a06ebc5aa8).Spritecxx . . $ Sprite# ();
44
45 void clearPixelscxx . . $ Sprite#clearPixels(49f6e7a06ebc5aa8). ();
46 void setOffsetcxx . . $ Sprite#setOffset(af780a7c10c7990f). (short int x, short int y);
47 void setPixelscxx . . $ Sprite#setPixels(3f9b724c895640a0). (unsigned char* data, int width, int height, unsigned char key);
48 int getWidthcxx . . $ Sprite#getWidth(b126dc7c1de90089). ();
49 int getHeightcxx . . $ Sprite#getHeight(b126dc7c1de90089). ();
50 int getXOffsetcxx . . $ Sprite#getXOffset(b126dc7c1de90089). ();
51 int getYOffsetcxx . . $ Sprite#getYOffset(b126dc7c1de90089). ();
52 void drawcxx . . $ Sprite#draw(6908015b96d379c0). (int x, int y, bool includeOffsets = true);
53 void drawScaledcxx . . $ Sprite#drawScaled(b1146eedae1e1d0b). (int x, int y, fixedcxx . . $ fixed# scale);
54 void setPalettecxx . . $ Sprite#setPalette(acbc52fef2632da7). (SDL_Colorcxx . . $ SDL_Color#* palette, int start, int amount);
55 void flashPalettecxx . . $ Sprite#flashPalette(d4f767463ce0a6b3). (int index);
56 void restorePalettecxx . . $ Sprite#restorePalette(49f6e7a06ebc5aa8). ();
57
58 };
59
60 #endif
61