Advanced Strategic Command
Classes | Functions | Variables
surface.cpp File Reference
#include <SDL_image.h>
#include <cmath>
#include "../sdl/sdlstretch.h"
#include "surface.h"
#include "blitter.h"
#include "../basegfx.h"
#include "../basestrm.h"
#include "../misc.h"
#include "../util/messaginghub.h"
#include <iostream>
Include dependency graph for surface.cpp:

Go to the source code of this file.

Classes

class  ColorMerger_MaskApply< pixelsize >
 

Functions

void writeDefaultPixelFormat (SDLmm::PixelFormat pf, tnstream &stream)
 
SDL_PixelFormat * readSDLPixelFormat (tnstream &stream)
 
SurfacegetFieldMask ()
 
void applyFieldMask (Surface &s, int x, int y, bool detecColorKey)
 
void applyLegacyFieldMask (Surface &s, int x, int y, bool detectColorKey)
 applies a field mask that uses FEFEFE Color as Colorkey to load old images More...
 
Surface rotateSurface (Surface &s, int degrees)
 

Variables

const int surfaceVersion = 2
 

Function Documentation

void applyFieldMask ( Surface s,
int  x,
int  y,
bool  detecColorKey 
)
void applyLegacyFieldMask ( Surface s,
int  x,
int  y,
bool  detectColorKey 
)
Surface& getFieldMask ( )
SDL_PixelFormat* readSDLPixelFormat ( tnstream stream)

Definition at line 117 of file surface.cpp.

References tnstream::getLocation(), and tnstream::readInt().

Referenced by Surface::readDefaultPixelFormat().

Surface rotateSurface ( Surface s,
int  degrees 
)
void writeDefaultPixelFormat ( SDLmm::PixelFormat  pf,
tnstream stream 
)

Definition at line 96 of file surface.cpp.

References tnstream::writeInt().

Variable Documentation

const int surfaceVersion = 2

Definition at line 216 of file surface.cpp.

Referenced by Surface::read(), and Surface::write().