These functions can be used for native drawing on surfaces.
Functions | |
SDL_Surface * | RotoScaleSurface (SDL_Surface *src, double angle, double zoom, bool smooth=true) |
Rotate and scale an SDL_Surface. | |
SDL_Surface * | ScaleSurface (SDL_Surface *src, double zoomx, double zoomy, bool smooth=true) |
Scale an SDL_Surface. | |
void | BlitScale (SDL_Surface *src, SDL_Surface *dst, bool smooth=true) |
Scale and blit surface. | |
SDL_Surface * | CreateGradient (const PG_Rect &r, PG_Gradient &gradient) |
Creates a surface filled with a gradient. | |
SDL_Surface * | CreateGradient (const PG_Rect &r, const PG_Color &ul, const PG_Color &ur, const PG_Color &dl, const PG_Color &dr) |
Creates a surface filled with a gradient. | |
void | DrawGradient (SDL_Surface *surface, const PG_Rect &r, PG_Gradient &gradient) |
void | DrawGradient (SDL_Surface *surface, const PG_Rect &rect, const PG_Color &ul, const PG_Color &ur, const PG_Color &dl, const PG_Color &dr) |
SDL_Surface * | CreateRGBSurface (Uint16 w, Uint16 h, int flags=SDL_SWSURFACE) |
Create a new SDL surface. | |
void | DrawThemedSurface (SDL_Surface *surface, const PG_Rect &r, PG_Gradient *gradient, SDL_Surface *background, int bkmode, Uint8 blend) |
Draw a 'themed' surface. | |
void | DrawLine (SDL_Surface *surface, Uint32 x0, Uint32 y0, Uint32 x1, Uint32 y1, const PG_Color &color, Uint8 width=1) |
Draw a line. | |
void | SetPixel (int x, int y, const PG_Color &c, SDL_Surface *surface) |
Set a pixel. | |
void | BlitSurface (SDL_Surface *srf_src, const PG_Rect &rect_src, SDL_Surface *srf_dst, const PG_Rect &rect_dst) |
replacement for SDL_BlitSurface | |
void | DrawTile (SDL_Surface *surface, const PG_Rect &ref, const PG_Rect &drawrect, SDL_Surface *tilemap) |
|
Scale and blit surface. Scales a 32 bit or 8 bit SDL_Surface to the size of the destination surface dst and blits the result to the destination surface. If the surface is not 8bit or 32bit RGBA/ABGR it will be converted into a 32bit RGBA format on the fly.
|
|
replacement for SDL_BlitSurface
|
|
Creates a surface filled with a gradient.
|
|
Creates a surface filled with a gradient.
|
|
Create a new SDL surface.
|
|
|
|
|
|
Draw a line.
|
|
Draw a 'themed' surface.
|
|
|
|
Rotate and scale an SDL_Surface. Rotates and scales a 32bit or 8bit SDL_Surface to newly created destination surface. If smooth is 1 the destination 32bit surface is anti-aliased. If the surface is not 8bit or 32bit RGBA/ABGR it will be converted into a 32bit RGBA format on the fly.
|
|
Scale an SDL_Surface. Scales a 32bit or 8bit SDL_Surface to newly created destination surface. If the surface is not 8bit or 32bit RGBA/ABGR it will be converted into a 32bit RGBA format on the fly.
|
|
Set a pixel.
|