#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 "../messaginghub.h"#include <iostream>Include dependency graph for graphics/surface.cpp:

Go to the source code of this file.
Functions | |
| void | writeDefaultPixelFormat (SDLmm::PixelFormat pf, tnstream &stream) |
| SDL_PixelFormat * | readSDLPixelFormat (tnstream &stream) |
| Surface & | getFieldMask () |
| 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 | |
| Surface | rotateSurface (Surface &s, int degrees) |
Variables | |
| const int | surfaceVersion = 2 |
|
||||||||||||||||||||
|
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(). |
|
||||||||||||||||||||
|
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(). |
|
|
Definition at line 536 of file graphics/surface.cpp. References assert, RWOPS_Handler::Close(), fatalError(), RWOPS_Handler::Get(), tfileerror::getFileName(), tnstream::reading, and SDL_RWFromStream(). Referenced by applyFieldMask(), and applyLegacyFieldMask(). |
|
|
Definition at line 117 of file graphics/surface.cpp. References tnstream::getLocation(), and tnstream::readInt(). Referenced by Surface::readDefaultPixelFormat(). |
|
||||||||||||
|
Definition at line 667 of file graphics/surface.cpp. References Surface::detectColorKey(), and getPixelRotationLocation(). |
|
||||||||||||
|
Definition at line 96 of file graphics/surface.cpp. References tnstream::writeInt(). |
|
|
Definition at line 216 of file graphics/surface.cpp. Referenced by Surface::read(), and Surface::write(). |
1.4.2