|
SDLGameEngine
|
Low level graphics and drawing functions. More...
Go to the source code of this file.
Data Structures | |
| struct | SGEPIXELINFO |
| struct | SGEPOSITION |
Defines | |
| #define | sgeClearScreen() SDL_FillRect(screen, NULL, 0) |
| clear the whole screen to black | |
| #define | sgeConvertToGray sgeConvertToGrey |
| a alias for sgeConvertToGrey | |
Functions | |
| SGEPOSITION * | sgePositionNew (int x, int y) |
| create a new SGEPOSITION | |
| void | sgePositionDestroy (SGEPOSITION *p) |
| destroy a SGEPOSITION and free resources | |
| SGEPIXELINFO * | sgePixelInfoNew (Uint8 r, Uint8 g, Uint8 b, Uint8 a) |
| create a new SGEPIXELINFO | |
| void | sgePixelInfoDestroy (SGEPIXELINFO *i) |
| destroy a SGEPIXELINFO and free resources | |
| Uint32 | sgeMakeColor (SDL_Surface *surface, int r, int g, int b, int a) |
| create a new hardware dependant color | |
| void | sgeFillRect (SDL_Surface *dest, int x, int y, int w, int h, Uint32 color) |
| draw a filled rectangle | |
| void | sgeDrawRect (SDL_Surface *dest, int x, int y, int w, int h, int linewidth, Uint32 color) |
| draw the outlines of a rectangle | |
| void | sgeDrawPixel (SDL_Surface *dest, int x, int y, Uint32 color) |
| draw a pixel | |
| SGEPIXELINFO * | sgeGetPixel (SDL_Surface *dest, int x, int y) |
| get the color of a pixel | |
| void | sgeDrawLine (SDL_Surface *dest, int x, int y, int x2, int y2, Uint32 color) |
| draw a line | |
| void | sgeDrawImage (SDL_Surface *dest, SDL_Surface *image, int x, int y) |
| draw a image | |
| void | sgeIgnoreAlpha (SDL_Surface *s) |
| disable alpha blending on a SDL_Surface | |
| void | sgeUseAlpha (SDL_Surface *s) |
| enable alpha blending on a SDL_Surface | |
| SDL_Surface * | sgeRotoZoom (SDL_Surface *source, float rotation, float zoom) |
| creates a new SDL_Surface from a source which displays a rotated and zoomed copy of source | |
| SDL_Surface * | sgeChangeSDLSurfaceAlpha (SDL_Surface *s, Uint8 alpha) |
| copies a SDL_Surface and returns a new SDL_Surface with new overall alpha values | |
| SDL_Surface * | sgeCreateSDLSurface (int width, int height, int depth, Uint32 sdlflags) |
| create a new SDL_Surface into application RAM | |
| SDL_Surface * | sgeCreateVideoSurface (int width, int height, int depth, Uint32 sdlflags) |
| create a new accelerated SDL_Surface into video RAM (if possible) | |
| SDL_Surface * | sgeConvertToGrey (SDL_Surface *src) |
| return a new SDL_Surface holding a grey version of another SDL_Surface | |
Low level graphics and drawing functions.
Definition in file sgegfx.h.