sdlstretch.cpp File Reference

#include "../global.h"
#include <stdio.h>
#include <cstring>
#include <math.h>
#include <stdlib.h>
#include "sdlstretch.h"

Include dependency graph for sdlstretch.cpp:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define sign(x)   ((x)>0 ? 1:-1)

Functions

template<class ST, class DT>
void StretchTemplateLUT (int x1, int x2, int y1, int y2, int yr, int yw, ST src_pixels, DT dst_pixels, Uint32 *lut)
template<class ST, class DT>
void StretchTemplate (int x1, int x2, int y1, int y2, int yr, int yw, ST src_pixels, DT dst_pixels)
template<class ST, class DT>
void RectStretchTemplate (SDL_Surface *src_surface, ST src, int xs1, int ys1, int xs2, int ys2, SDL_Surface *dst_surface, DT dst, int xd1, int yd1, int xd2, int yd2, Uint32 *lutVOI)
void SDL_StretchSurface (SDL_Surface *src_surface, int xs1, int ys1, int xs2, int ys2, SDL_Surface *dst_surface, int xd1, int yd1, int xd2, int yd2, Uint32 *lutVOI)
void SDL_StretchSurface (SDL_Surface *src_surface, SDL_Rect *src_rect, SDL_Surface *dst_surface, SDL_Rect *dst_rect, Uint32 *voiLUT)


Define Documentation

#define sign (  )     ((x)>0 ? 1:-1)

Definition at line 32 of file sdlstretch.cpp.

Referenced by RectStretchTemplate().


Function Documentation

template<class ST, class DT>
void RectStretchTemplate ( SDL_Surface *  src_surface,
ST  src,
int  xs1,
int  ys1,
int  xs2,
int  ys2,
SDL_Surface *  dst_surface,
DT  dst,
int  xd1,
int  yd1,
int  xd2,
int  yd2,
Uint32 *  lutVOI 
) [inline]

Definition at line 91 of file sdlstretch.cpp.

References sign, StretchTemplate(), and StretchTemplateLUT().

Referenced by SDL_StretchSurface().

void SDL_StretchSurface ( SDL_Surface *  src_surface,
SDL_Rect *  src_rect,
SDL_Surface *  dst_surface,
SDL_Rect *  dst_rect,
Uint32 *  voiLUT 
)

Definition at line 206 of file sdlstretch.cpp.

void SDL_StretchSurface ( SDL_Surface *  src_surface,
int  xs1,
int  ys1,
int  xs2,
int  ys2,
SDL_Surface *  dst_surface,
int  xd1,
int  yd1,
int  xd2,
int  yd2,
Uint32 *  lutVOI 
)

Definition at line 149 of file sdlstretch.cpp.

Referenced by SDL_StretchSurface(), and Surface::strech().

template<class ST, class DT>
void StretchTemplate ( int  x1,
int  x2,
int  y1,
int  y2,
int  yr,
int  yw,
ST  src_pixels,
DT  dst_pixels 
) [inline]

Definition at line 65 of file sdlstretch.cpp.

Referenced by RectStretchTemplate().

template<class ST, class DT>
void StretchTemplateLUT ( int  x1,
int  x2,
int  y1,
int  y2,
int  yr,
int  yw,
ST  src_pixels,
DT  dst_pixels,
Uint32 *  lut 
) [inline]

Definition at line 36 of file sdlstretch.cpp.

Referenced by RectStretchTemplate().


Generated on Mon May 21 01:42:15 2012 for Advanced Strategic Command by  doxygen 1.5.1