_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

graphic.cpp File Reference
#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 ()
 

Function Documentation

◆ applyAlphaGrayscaleToSurface()

static void applyAlphaGrayscaleToSurface ( SDL_Surface **  src,
int  alpha 
)
static

◆ ApplyGrayScale()

static void ApplyGrayScale ( SDL_Surface *  Surface,
int  Width,
int  Height 
)
static

◆ dither()

static void dither ( SDL_Surface *  Surface)
inlinestatic

◆ FreeGraphics()

void FreeGraphics ( )

◆ FreeSurface()

static void FreeSurface ( SDL_Surface **  surface)
static

Free a SDL surface

Parameters
surfaceSDL surface to free

◆ shearSurface()

static void shearSurface ( SDL_Surface *  surface,
int  xOffset,
int  yOffset,
int  numFrames,
CGraphic::frame_pos_t frameMap,
int  frameW,
int  frameH 
)
static

◆ shrinkSurfaceFramesInY()

static void shrinkSurfaceFramesInY ( SDL_Surface **  src,
int  shrink,
int  numFrames,
CGraphic::frame_pos_t frameMap,
int  frameW,
int  frameH 
)
static

Variable Documentation

◆ GraphicHash

std::map<std::string, CGraphic *> GraphicHash
static

◆ Graphics

std::list<CGraphic *> Graphics
static

◆ HashCount

int HashCount
static
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.