#include <surface.h>
Inheritance diagram for Surface:

Public Member Functions | |
| 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. | |
| 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) | |
| 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 | |
| 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 | |
| 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 | |
| static const Uint32 | transparent = 0 |
| static const Uint32 | opaque = 255l |
Protected Member Functions | |
| virtual int | getDepthFormat () |
| void | convert () |
|
|
Definition at line 145 of file graphics/surface.cpp. References convert(). |
|
|
Definition at line 198 of file graphics/surface.cpp. References convert(). |
|
|
Definition at line 69 of file surface.h. Referenced by Wrap(). |
|
|
Definition at line 524 of file graphics/surface.cpp. |
|
|
assigns the default ASC palette to the surface (only for 8 Bit surfaces)
Definition at line 422 of file graphics/surface.cpp. References pal. Referenced by copy2screen(), createSurface(), loadASCFieldImageArray(), MapDisplayPG::MapDisplayPG(), read(), Vehicletype::runTextIO(), and strech(). |
|
||||||||||||||||
|
Definition at line 437 of file graphics/surface.cpp. |
|
|
Definition at line 727 of file graphics/surface.cpp. References transparent. Referenced by loadASCFieldImageArray(). |
|
|
Definition at line 151 of file graphics/surface.cpp. References createSurface(). Referenced by read(), readImageFile(), and Surface(). |
|
||||||||||||||||||||
|
Definition at line 387 of file graphics/surface.cpp. References assert, and assignDefaultPalette(). |
|
||||||||||||||||
|
|
tries to automatically detect the color key of the surface
Definition at line 486 of file graphics/surface.cpp. References hasAlpha(). Referenced by applyFieldMask(), applyLegacyFieldMask(), loadASCFieldImageArray(), rotateSurface(), and strech(). |
|
|
Definition at line 85 of file graphics/surface.cpp. References nullParam. Referenced by OverviewMapHolder::drawNextField(). |
|
|
Definition at line 412 of file graphics/surface.cpp. Referenced by BuildingItem::display(). |
|
|
|
|
|
|
Reimplemented in TypedSurface< colorDepth >. |
|
|
Definition at line 709 of file graphics/surface.cpp. References getBaseSurface(). Referenced by Vehicletype::getMemoryFootprint(), TerrainType::Weather::getMemoryFootprint(), and BuildingType::getMemoryFootprint(). |
|
|
Definition at line 469 of file graphics/surface.cpp. Referenced by applyLegacyFieldMask(), and detectColorKey(). |
|
|
Definition at line 508 of file graphics/surface.cpp. References opaque. Referenced by OverviewMapImage::create(). |
|
|
Creates an image from an BGI image structure.
|
|
|
Definition at line 265 of file graphics/surface.cpp. References assignDefaultPalette(), convert(), trleheader::id, trleheader::rle, trleheader::size, surfaceVersion, uncompress_rlepict(), trleheader::x, and trleheader::y. Referenced by GraphicSetManager_Base::loadData(), Vehicletype::read(), TerrainType::Weather::read(), ObjectType::read(), and BuildingType::read(). |
|
|
Definition at line 205 of file graphics/surface.cpp. References readSDLPixelFormat(). |
|
|
Definition at line 373 of file graphics/surface.cpp. References convert(), and SDL_RWFromStream(). Referenced by CargoDialog::CargoDialog(), and UnitInfoDialog::UnitInfoDialog(). |
|
|
Definition at line 78 of file graphics/surface.cpp. Referenced by ASC_PG_App::InitScreen(). |
|
||||||||||||
|
Definition at line 450 of file graphics/surface.cpp. References assignDefaultPalette(), detectColorKey(), and SDL_StretchSurface(). Referenced by GraphicSetManager_Base::loadData(), Vehicletype::runTextIO(), and Weathercast::Weathercast(). |
|
|
Definition at line 695 of file graphics/surface.cpp. References asc_malloc(), and imagesize(). |
|
|
|
Definition at line 218 of file graphics/surface.cpp. References surfaceVersion, tnstream::writeChar(), tnstream::writedata(), tnstream::writeInt(), and tnstream::writeWord(). Referenced by Vehicletype::write(), TerrainType::Weather::write(), and BuildingType::write(). |
|
|
Definition at line 211 of file graphics/surface.cpp. |
|
|
Definition at line 66 of file surface.h. Referenced by ColorMerger_AlphaMerge< 4 >::assign(), ColorConverter< 1, 4 >::convert(), OverviewMapImage::create(), hasTransparency(), and isTransparent(). |
|
1.4.2