|
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 | VALUE_LIMIT 0.001 |
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 | _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 77 of file SDL_rotate.c.
Referenced by SDLgfx_rotateSurface().
Definition at line 65 of file SDL_rotate.c.
Referenced by SDLgfx_rotozoomSurfaceSizeTrig().
| #define VALUE_LIMIT 0.001 |
Definition at line 82 of file SDL_rotate.c.
|
static |
Definition at line 88 of file SDL_rotate.c.
References SDL_GetColorKey.
Referenced by SDLgfx_rotateSurface(), and transformSurfaceY().
|
static |
Definition at line 159 of file SDL_rotate.c.
References tColorRGBA::a, tColorRGBA::b, tColorRGBA::g, SDL_Surface::h, SDL_Surface::pitch, SDL_Surface::pixels, tColorRGBA::r, and SDL_Surface::w.
Referenced by SDLgfx_rotateSurface().
| 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 340 of file SDL_rotate.c.
References _colorkey(), _transformSurfaceRGBA(), SDL_PixelFormat::Amask, tColorRGBA::b, SDL_PixelFormat::BitsPerPixel, blendMode, SDL_PixelFormat::Bmask, SDL_Palette::colors, SDL_Surface::flags, SDL_Surface::format, tColorRGBA::g, SDL_PixelFormat::Gmask, GUARD_ROWS, SDL_Surface::h, i, SDL_Palette::ncolors, NULL, SDL_PixelFormat::palette, tColorRGBA::r, SDL_PixelFormat::Rmask, SDL_BYTEORDER, SDL_ConvertSurfaceFormat, SDL_CreateRGBSurface, SDL_FillRect, SDL_FreeSurface, SDL_GetRGB, SDL_GetSurfaceAlphaMod, SDL_GetSurfaceBlendMode, SDL_GetSurfaceColorMod, SDL_LIL_ENDIAN, SDL_LockSurface, SDL_MapRGB, SDL_MasksToPixelFormatEnum, SDL_MUSTLOCK, SDL_RLEACCEL, SDL_SetColorKey, SDL_SetSurfaceAlphaMod, SDL_SetSurfaceBlendMode, SDL_SetSurfaceColorMod, SDL_SWSURFACE, SDL_TRUE, SDL_UnlockSurface, and transformSurfaceY().
Referenced by SW_RenderCopyEx().
| void SDLgfx_rotozoomSurfaceSizeTrig | ( | int | width, |
| int | height, | ||
| double | angle, | ||
| int * | dstwidth, | ||
| int * | dstheight, | ||
| double * | cangle, | ||
| double * | sangle | ||
| ) |
Definition at line 109 of file SDL_rotate.c.
References MAX, SDL_ceil, SDL_cos, SDL_fabs, and SDL_sin.
Referenced by SW_RenderCopyEx().
|
static |
Definition at line 273 of file SDL_rotate.c.
References _colorkey(), SDL_Surface::h, SDL_Surface::pitch, SDL_Surface::pixels, SDL_memset, and SDL_Surface::w.
Referenced by SDLgfx_rotateSurface().