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

surface.h File Reference

#include "../libs/sdlmm/src/sdlmm.h"
#include "../basestreaminterface.h"

Include dependency graph for surface.h:

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

Go to the source code of this file.

Typedefs

typedef SDLmm::SPoint SPoint
typedef TypedSurface< 1 > Surface8
typedef TypedSurface< 4 > Surface32

Functions

template<int depth>
TypedSurface< depth > & castSurface (Surface &s)
void applyFieldMask (Surface &s, int x=0, int y=0, bool detectColorKey=true)
void applyLegacyFieldMask (Surface &s, int x=0, int y=0, bool detectColorKey=false)
 applies a field mask that uses FEFEFE Color as Colorkey to load old images
Surface rotateSurface (Surface &s, int degrees)


Typedef Documentation

typedef SDLmm::SPoint SPoint
 

Definition at line 27 of file surface.h.

typedef TypedSurface<4> Surface32
 

Definition at line 154 of file surface.h.

typedef TypedSurface<1> Surface8
 

Definition at line 153 of file surface.h.


Function Documentation

void applyFieldMask Surface s,
int  x = 0,
int  y = 0,
bool  detectColorKey = true
 

Definition at line 586 of file graphics/surface.cpp.

References MegaBlitter< BytesPerSourcePixel, BytesPerTargetPixel, SourceColorTransform, ColorMerger, SourcePixelSelector, TargetPixelSelector, MyColorConverter >::blit(), Surface::detectColorKey(), and getFieldMask().

Referenced by loadASCFieldImage(), loadASCFieldImageArray(), and BuildingType::runTextIO().

void applyLegacyFieldMask Surface s,
int  x = 0,
int  y = 0,
bool  detectColorKey = false
 

applies a field mask that uses FEFEFE Color as Colorkey to load old images

Definition at line 604 of file graphics/surface.cpp.

References MegaBlitter< BytesPerSourcePixel, BytesPerTargetPixel, SourceColorTransform, ColorMerger, SourcePixelSelector, TargetPixelSelector, MyColorConverter >::blit(), Surface::createSurface(), Surface::detectColorKey(), getFieldMask(), and Surface::hasAlpha().

Referenced by loadASCFieldImageArray().

template<int depth>
TypedSurface<depth>& castSurface Surface s  ) 
 

Definition at line 157 of file surface.h.

References assert.

Surface rotateSurface Surface s,
int  degrees
 

Definition at line 667 of file graphics/surface.cpp.

References Surface::detectColorKey(), and getPixelRotationLocation().


Generated on Tue Jun 24 02:11:04 2008 for Advanced Strategic Command by  doxygen 1.4.2