|
SDL
2.0
|
#include "../../SDL_internal.h"#include <stdlib.h>#include <string.h>#include "SDL.h"#include "SDL_rotate.h"
Include dependency graph for SDL_rotate.c:Go to the source code of this file.
Data Structures | |
| struct | tColorRGBA |
| struct | tColorY |
Macros | |
| #define | MAX(a, b) (((a) > (b)) ? (a) : (b)) |
| #define | GUARD_ROWS (2) |
| #define | TRANSFORM_SURFACE_90(pixelType) |
Functions | |
| static Uint32 | _colorkey (SDL_Surface *src) |
| void | SDLgfx_rotozoomSurfaceSizeTrig (int width, int height, double angle, int *dstwidth, int *dstheight, double *cangle, double *sangle) |
| static void | computeSourceIncrements90 (SDL_Surface *src, int bpp, int angle, int flipx, int flipy, int *sincx, int *sincy, int *signx, int *signy) |
| static void | transformSurfaceRGBA90 (SDL_Surface *src, SDL_Surface *dst, int angle, int flipx, int flipy) |
| static void | transformSurfaceY90 (SDL_Surface *src, SDL_Surface *dst, int angle, int flipx, int flipy) |
| static void | _transformSurfaceRGBA (SDL_Surface *src, SDL_Surface *dst, int cx, int cy, int isin, int icos, int flipx, int flipy, int smooth) |
| static void | transformSurfaceY (SDL_Surface *src, SDL_Surface *dst, int cx, int cy, int isin, int icos, int flipx, int flipy) |
| SDL_Surface * | SDLgfx_rotateSurface (SDL_Surface *src, double angle, int centerx, int centery, int smooth, int flipx, int flipy, int dstwidth, int dstheight, double cangle, double sangle) |
| #define GUARD_ROWS (2) |
Definition at line 79 of file SDL_rotate.c.
| #define TRANSFORM_SURFACE_90 | ( | pixelType | ) |
Definition at line 178 of file SDL_rotate.c.
|
static |
Definition at line 85 of file SDL_rotate.c.
References SDL_GetColorKey, and SDL_HasColorKey.
Referenced by transformSurfaceY().
|
static |
Definition at line 232 of file SDL_rotate.c.
References tColorRGBA::a, tColorRGBA::b, tColorRGBA::g, if, and tColorRGBA::r.
Referenced by SDLgfx_rotateSurface().
|
static |
Definition at line 156 of file SDL_rotate.c.
References bpp.
| SDL_Surface* SDLgfx_rotateSurface | ( | SDL_Surface * | src, |
| double | angle, | ||
| int | centerx, | ||
| int | centery, | ||
| int | smooth, | ||
| int | flipx, | ||
| int | flipy, | ||
| int | dstwidth, | ||
| int | dstheight, | ||
| double | cangle, | ||
| double | sangle | ||
| ) |
Definition at line 417 of file SDL_rotate.c.
References _transformSurfaceRGBA(), SDL_Palette::colors, SDL_Surface::format, GUARD_ROWS, SDL_Surface::h, i, int(), SDL_Palette::ncolors, NULL, SDL_PixelFormat::palette, SDL_BLENDMODE_BLEND, SDL_BLENDMODE_MOD, SDL_BLENDMODE_MUL, SDL_BLENDMODE_NONE, SDL_CreateRGBSurface, SDL_FALSE, SDL_FillRect, SDL_GetColorKey, SDL_GetSurfaceBlendMode, SDL_HasColorKey, SDL_LockSurface, SDL_MapRGBA, SDL_MUSTLOCK, SDL_SetColorKey, SDL_SetSurfaceBlendMode, SDL_TRUE, SDL_UnlockSurface, transformSurfaceRGBA90(), transformSurfaceY(), and transformSurfaceY90().
Referenced by SW_RenderCopyEx().
| void SDLgfx_rotozoomSurfaceSizeTrig | ( | int | width, |
| int | height, | ||
| double | angle, | ||
| int * | dstwidth, | ||
| int * | dstheight, | ||
| double * | cangle, | ||
| double * | sangle | ||
| ) |
Definition at line 108 of file SDL_rotate.c.
References int(), MAX, SDL_ceil, SDL_cos, SDL_fabs, and SDL_sin.
Referenced by SW_RenderCopyEx().
|
static |
Definition at line 199 of file SDL_rotate.c.
References TRANSFORM_SURFACE_90.
Referenced by SDLgfx_rotateSurface().
|
static |
Definition at line 346 of file SDL_rotate.c.
References _colorkey(), and SDL_memset.
Referenced by SDLgfx_rotateSurface().
|
static |
Definition at line 205 of file SDL_rotate.c.
References TRANSFORM_SURFACE_90.
Referenced by SDLgfx_rotateSurface().