#include <vector>#include <algorithm>#include <iostream>#include <SDL_image.h>#include <boost/regex.hpp>#include "global.h"#include "ascstring.h"#include "fieldimageloader.h"#include "typen.h"#include "graphics/blitter.h"#include "basestreaminterface.h"#include "stringtokenizer.h"#include "graphics/surface2png.h"Include dependency graph for fieldimageloader.cpp:

Go to the source code of this file.
Functions | |
| void | snowify (Surface &s, bool adaptive) |
| bool | imageEmpty (const Surface &s) |
| vector< Surface > | loadASCFieldImageArray (const ASCString &file, int num) |
| Surface | loadASCFieldImage (const ASCString &file, bool applyFieldMaskToImage) |
Variables | |
| const char * | fileNameDelimitter = " =*/+<>," |
| bool imageEmpty | ( | const Surface & | s | ) |
Definition at line 91 of file fieldimageloader.cpp.
References Surface::transparent.
Referenced by loadASCFieldImageArray().
Definition at line 191 of file fieldimageloader.cpp.
References applyFieldMask(), RWOPS_Handler::Close(), displayLogMessage(), errorMessage(), fieldsizex, fieldsizey, fileNameDelimitter, RWOPS_Handler::Get(), StringTokenizer::getNextToken(), tnstream::reading, s2, s3, SDL_RWFromStream(), FileName::suffix(), ASCString::toLower(), and warningMessage().
Referenced by ASCImageProperty::operation_eq().
Definition at line 120 of file fieldimageloader.cpp.
References applyFieldMask(), applyLegacyFieldMask(), Surface::assignDefaultPalette(), MegaBlitter< BytesPerSourcePixel, BytesPerTargetPixel, SourceColorTransform, ColorMerger, SourcePixelSelector, TargetPixelSelector, MyColorConverter >::blit(), ASCString::copytoLower(), Surface::createSurface(), fatalError(), fieldsizex, fieldsizey, imageEmpty(), tnstream::reading, s2, and SDL_RWFromStream().
Referenced by ASCImageArrayProperty::operation_eq().
| void snowify | ( | Surface & | s, | |
| bool | adaptive | |||
| ) |
Definition at line 38 of file fieldimageloader.cpp.
References Surface::transparent.
Referenced by TerrainType::Weather::runTextIO(), and ObjectType::runTextIO().
| const char* fileNameDelimitter = " =*/+<>," |
1.5.1