SDL
2.0
|
#include "../../SDL_internal.h"
#include <stdlib.h>
#include <string.h>
#include "SDL.h"
#include "SDL_rotate.h"
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 77 of file SDL_rotate.c.
Referenced by SDLgfx_rotateSurface().
Definition at line 65 of file SDL_rotate.c.
Referenced by SDLgfx_rotozoomSurfaceSizeTrig().
#define TRANSFORM_SURFACE_90 | ( | pixelType | ) |
Definition at line 174 of file SDL_rotate.c.
Referenced by transformSurfaceRGBA90(), and transformSurfaceY90().
|
static |
Definition at line 83 of file SDL_rotate.c.
References SDL_GetColorKey.
Referenced by transformSurfaceY().
|
static |
Definition at line 228 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().
|
static |
Definition at line 152 of file SDL_rotate.c.
References SDL_Surface::h, SDL_Surface::pitch, and SDL_Surface::w.
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 413 of file SDL_rotate.c.
References _transformSurfaceRGBA(), SDL_PixelFormat::Amask, SDL_PixelFormat::BitsPerPixel, SDL_PixelFormat::Bmask, SDL_Palette::colors, SDL_Surface::format, SDL_PixelFormat::Gmask, GUARD_ROWS, SDL_Surface::h, i, SDL_Palette::ncolors, NULL, SDL_PixelFormat::palette, SDL_PixelFormat::Rmask, SDL_BLENDMODE_BLEND, SDL_BLENDMODE_MOD, SDL_BLENDMODE_NONE, SDL_CreateRGBSurface, SDL_FALSE, SDL_FillRect, SDL_GetColorKey, SDL_GetSurfaceBlendMode, 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 104 of file SDL_rotate.c.
References MAX, SDL_ceil, SDL_cos, SDL_fabs, and SDL_sin.
Referenced by SW_RenderCopyEx().
|
static |
Definition at line 195 of file SDL_rotate.c.
References TRANSFORM_SURFACE_90.
Referenced by SDLgfx_rotateSurface().
|
static |
Definition at line 342 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().
|
static |
Definition at line 201 of file SDL_rotate.c.
References TRANSFORM_SURFACE_90.
Referenced by SDLgfx_rotateSurface().