Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

rotozoom.cpp File Reference

#include "paragui.h"
#include "pgdraw.h"
#include <cstdlib>
#include <cstring>
#include <cmath>

Include dependency graph for rotozoom.cpp:

Go to the source code of this file.

Defines

#define MAX(a, b)   (((a) > (b)) ? (a) : (b))
#define VALUE_LIMIT   0.001
#define VALUE_LIMIT   0.001

Typedefs

typedef tColorRGBA tColorRGBA
typedef tColorY tColorY

Functions

static int zoomSurfaceRGBA (SDL_Surface *src, SDL_Surface *dst, bool smooth)
static int zoomSurfaceY (SDL_Surface *src, SDL_Surface *dst)
static void transformSurfaceRGBA (SDL_Surface *src, SDL_Surface *dst, int cx, int cy, int isin, int icos, bool smooth)
static void transformSurfaceY (SDL_Surface *src, SDL_Surface *dst, int cx, int cy, int isin, int icos)
SDL_Surface * PG_Draw::RotoScaleSurface (SDL_Surface *src, double angle, double zoom, bool smooth)
SDL_Surface * PG_Draw::ScaleSurface (SDL_Surface *src, double zoomx, double zoomy, bool smooth)
void PG_Draw::BlitScale (SDL_Surface *src, SDL_Surface *dst, bool smooth)


Define Documentation

#define MAX a,
 )     (((a) > (b)) ? (a) : (b))
 

Definition at line 38 of file rotozoom.cpp.

Referenced by PG_Draw::RotoScaleSurface().

#define VALUE_LIMIT   0.001
 

Definition at line 652 of file rotozoom.cpp.

#define VALUE_LIMIT   0.001
 

Definition at line 652 of file rotozoom.cpp.

Referenced by PG_Draw::RotoScaleSurface(), and PG_Draw::ScaleSurface().


Typedef Documentation

typedef struct tColorRGBA tColorRGBA
 

typedef struct tColorY tColorY
 


Function Documentation

void PG_Draw::BlitScale SDL_Surface *  src,
SDL_Surface *  dst,
bool  smooth
 

Definition at line 738 of file rotozoom.cpp.

References PG_Draw::ScaleSurface().

SDL_Surface* PG_Draw::RotoScaleSurface SDL_Surface *  src,
double  angle,
double  zoom,
bool  smooth
 

Definition at line 492 of file rotozoom.cpp.

References M_PI, MAX, transformSurfaceRGBA(), transformSurfaceY(), VALUE_LIMIT, zoomSurfaceRGBA(), and zoomSurfaceY().

SDL_Surface* PG_Draw::ScaleSurface SDL_Surface *  src,
double  zoomx,
double  zoomy,
bool  smooth
 

Definition at line 654 of file rotozoom.cpp.

References VALUE_LIMIT, zoomSurfaceRGBA(), and zoomSurfaceY().

static void transformSurfaceRGBA SDL_Surface *  src,
SDL_Surface *  dst,
int  cx,
int  cy,
int  isin,
int  icos,
bool  smooth
[static]
 

Definition at line 284 of file rotozoom.cpp.

References tColorRGBA::a, tColorRGBA::b, tColorRGBA::g, and tColorRGBA::r.

Referenced by PG_Draw::RotoScaleSurface().

static void transformSurfaceY SDL_Surface *  src,
SDL_Surface *  dst,
int  cx,
int  cy,
int  isin,
int  icos
[static]
 

Definition at line 443 of file rotozoom.cpp.

Referenced by PG_Draw::RotoScaleSurface().

static int zoomSurfaceRGBA SDL_Surface *  src,
SDL_Surface *  dst,
bool  smooth
[static]
 

Definition at line 59 of file rotozoom.cpp.

References tColorRGBA::a, tColorRGBA::b, tColorRGBA::g, malloc(), and tColorRGBA::r.

Referenced by PG_Draw::RotoScaleSurface(), and PG_Draw::ScaleSurface().

static int zoomSurfaceY SDL_Surface *  src,
SDL_Surface *  dst
[static]
 

Definition at line 196 of file rotozoom.cpp.

References malloc().

Referenced by PG_Draw::RotoScaleSurface(), and PG_Draw::ScaleSurface().


Generated on Tue Jun 24 02:07:35 2008 for Advanced Strategic Command by  doxygen 1.4.2