_________ __ __ / _____// |_____________ _/ |______ ____ __ __ ______ \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > \/ \/ \//_____/ \/ ______________________ ______________________ T H E W A R B E G I N S Stratagus - A free fantasy real time strategy game engine
#include "stratagus.h"
#include <string>
#include <map>
#include <list>
#include "SDL_image.h"
#include "video.h"
#include "player.h"
#include "intern_video.h"
#include "iocompat.h"
#include "iolib.h"
#include "ui.h"
graphic.cpp - The general graphic functions. | |
static int | HashCount |
static std::map< std::string, CGraphic * > | GraphicHash |
static std::list< CGraphic * > | Graphics |
static void | ApplyGrayScale (SDL_Surface *Surface, int Width, int Height) |
static void | FreeSurface (SDL_Surface **surface) |
static void | dither (SDL_Surface *Surface) |
static void | applyAlphaGrayscaleToSurface (SDL_Surface **src, int alpha) |
static void | shrinkSurfaceFramesInY (SDL_Surface **src, int shrink, int numFrames, CGraphic::frame_pos_t *frameMap, int frameW, int frameH) |
static void | shearSurface (SDL_Surface *surface, int xOffset, int yOffset, int numFrames, CGraphic::frame_pos_t *frameMap, int frameW, int frameH) |
void | FreeGraphics () |
|
static |
|
static |
|
inlinestatic |
void FreeGraphics | ( | ) |
|
static |
Free a SDL surface
surface | SDL surface to free |
|
static |
|
static |
|
static |
|
static |
|
static |