Advanced Strategic Command
Protected Member Functions | List of all members
TypedSurfaceBase Class Reference

#include <surface.h>

Inheritance diagram for TypedSurfaceBase:
Inheritance graph

Protected Member Functions

 TypedSurfaceBase (SDL_Surface *surface)
 TypedSurfaceBase (const SDLmm::Surface &other)
 TypedSurfaceBase ()
- Protected Member Functions inherited from Surface
virtual int getDepthFormat ()
void convert ()

Additional Inherited Members

- Public Member Functions inherited from Surface
 Surface (SDL_Surface *surface)
 Surface (const SDLmm::Surface &other)
 Surface ()
Surface Duplicate () const
void newFromBGI (void *img)
 Creates an image from an BGI image structure. More...
void * toBGI () const
void FillTransparent ()
void read (tnstream &stream)
void readImageFile (tnstream &stream)
void write (tnstream &stream) const
void strech (int width, int height)
void writeDefaultPixelFormat (tnstream &stream)
void assignDefaultPalette ()
 assigns the default ASC palette to the surface (only for 8 Bit surfaces) More...
void assignPalette (SDL_Color *colors, int startColor=0, int colorNum=256)
void detectColorKey (bool RLE=false)
 tries to automatically detect the color key of the surface More...
bool isTransparent (SDLmm::Color col) const
void ColorKey2AlphaChannel ()
bool hasAlpha ()
int getMemoryFootprint () const
SDL_Surface * getBaseSurface ()
const SDL_Surface * getBaseSurface () const
 ~Surface ()
- Static Public Member Functions inherited from Surface
static Surface createSurface (int width, int height, SDLmm::Color color=255)
static Surface createSurface (int width, int height, int depth, SDLmm::Color color=0xff0000ff)
static Surface Wrap (SDL_Surface *surface)
static void SetScreen (SDL_Surface *screen)
static void readDefaultPixelFormat (tnstream &stream)
- Static Public Attributes inherited from Surface
static const Uint32 transparent = 0
static const Uint32 opaque = 255l

Detailed Description

Definition at line 129 of file surface.h.

Constructor & Destructor Documentation

TypedSurfaceBase::TypedSurfaceBase ( SDL_Surface *  surface)

Definition at line 131 of file surface.h.

TypedSurfaceBase::TypedSurfaceBase ( const SDLmm::Surface &  other)

Definition at line 132 of file surface.h.

TypedSurfaceBase::TypedSurfaceBase ( )

Definition at line 133 of file surface.h.

The documentation for this class was generated from the following file: