|
Public Member Functions |
| | Graphics () |
| void | free () |
| void | destroy () |
| void | registerEngine (Engine *engine) |
| void | mapColors () |
| Sprite * | getSpriteHead () |
| void | setTransparent (SDL_Surface *sprite) |
| void | updateScreen () |
| void | delay (int time) |
| void | RGBtoHSV (float r, float g, float b, float *h, float *s, float *v) |
| void | HSVtoRGB (float *r, float *g, float *b, float h, float s, float v) |
| SDL_Surface * | loadImage (char *filename) |
| SDL_Surface * | loadImage (char *filename, int hue, int sat, int value) |
| SDL_Surface * | quickSprite (char *name, SDL_Surface *image) |
| void | fade (int amount) |
| void | fadeToBlack () |
| void | loadMapTiles (char *baseDir) |
| void | loadFont (int i, char *filename, int pixelSize) |
| Sprite * | addSprite (char *name) |
| Sprite * | getSprite (char *name, bool required) |
| void | animateSprites () |
| int | getWaterAnim () |
| int | getSlimeAnim () |
| int | getLavaAnim () |
| int | getLavaAnim (int current) |
| void | loadBackground (char *filename) |
| void | putPixel (int x, int y, Uint32 pixel, SDL_Surface *dest) |
| Uint32 | getPixel (SDL_Surface *surface, int x, int y) |
| void | drawLine (float startX, float startY, float endX, float endY, int color, SDL_Surface *dest) |
| void | blit (SDL_Surface *image, int x, int y, SDL_Surface *dest, bool centered) |
| void | drawBackground () |
| void | drawBackground (SDL_Rect *r) |
| void | drawRect (int x, int y, int w, int h, int color, SDL_Surface *dest) |
| void | drawRect (int x, int y, int w, int h, int color, int borderColor, SDL_Surface *dest) |
| void | setFontColor (int red, int green, int blue, int red2, int green2, int blue2) |
| void | setFontSize (int size) |
| SDL_Surface * | getString (char *in, bool transparent) |
| void | drawString (char *in, int x, int y, int alignment, SDL_Surface *dest) |
| void | clearChatString () |
| void | createChatString (char *in) |
| void | drawChatString (SDL_Surface *surface, int y) |
| void | drawWidgetRect (int x, int y, int w, int h) |
| SDL_Surface * | createSurface (int width, int height) |
| SDL_Surface * | alphaRect (int width, int height, Uint8 red, Uint8 green, Uint8 blue) |
| void | colorize (SDL_Surface *image, int red, int green, int blue) |
| void | lock (SDL_Surface *surface) |
| void | unlock (SDL_Surface *surface) |
| void | resetLoading () |
| void | showLoading (int amount, int max) |
| void | showErrorAndExit (char *error, char *param) |
| void | showLicenseErrorAndExit () |
| void | showRootWarning () |
Public Attributes |
| bool | takeRandomScreenShots |
| SDL_Surface * | screen |
| SDL_Surface * | background |
| SDL_Surface * | tile [MAX_TILES] |
| SDL_Surface * | infoBar |
| int | red |
| int | yellow |
| int | green |
| int | darkGreen |
| int | skyBlue |
| int | blue |
| int | cyan |
| int | white |
| int | lightGrey |
| int | grey |
| int | darkGrey |
| int | black |
Private Attributes |
| Engine * | engine |
| SDL_Rect | gRect |
| TTF_Font * | font [5] |
| SDL_Color | fontForeground |
| SDL_Color | fontBackground |
| List | spriteList |
| int | fontSize |
| int | waterAnim |
| int | slimeAnim |
| int | lavaAnim |
| int | currentLoading |
| int | screenShotNumber |
| char | screenshot [100] |
| char | chatString [1024] |
| SDL_Surface * | fadeBlack |
| SDL_Surface * | infoMessage |