$treeview $search $mathjax
Stratagus
2.2.6
$projectbrief
|
$projectbrief
|
$searchbox |
_________ __ __ / _____// |_____________ _/ |______ ____ __ __ ______ \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > \/ \/ \//_____/ \/ ______________________ ______________________ T H E W A R B E G I N S Stratagus - A free fantasy real time strategy game engine
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "stratagus.h"
#include <string>
#include <map>
#include <list>
#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 | FreeSurface (SDL_Surface **surface) |
void | FreeOpenGLGraphics () |
Free OpenGL graphics. | |
void | ReloadGraphics () |
Reload OpenGL graphics. | |
static int | PowerOf2 (int x) |
static void | MakeTextures2 (CGraphic *g, GLuint texture, CUnitColors *colors, int ow, int oh) |
static void | MakeTextures (CGraphic *g, int player, CUnitColors *colors) |
void | MakeTexture (CGraphic *g) |
Make an OpenGL texture. | |
void | MakePlayerColorTexture (CPlayerColorGraphic *g, int player) |
Make an OpenGL texture of the player color pixels only. |
void FreeOpenGLGraphics | ( | ) |
Free OpenGL graphics.
Free OpenGL graphics
static void FreeSurface | ( | SDL_Surface ** | surface | ) | [static] |
Free a SDL surface
surface | SDL surface to free |
void MakePlayerColorTexture | ( | CPlayerColorGraphic * | g, | |
int | player | |||
) |
Make an OpenGL texture of the player color pixels only.
Make an OpenGL texture with the player colors.
g | The graphic to texture with player colors. | |
player | Player number to make textures for. |
void MakeTexture | ( | CGraphic * | g | ) |
Make an OpenGL texture.
Make an OpenGL texture or textures out of a graphic object.
g | The graphic object. |
static void MakeTextures | ( | CGraphic * | g, | |
int | player, | |||
CUnitColors * | colors | |||
) | [static] |
Make an OpenGL texture or textures out of a graphic object.
g | The graphic object. | |
player | Player number. | |
colors | Unit colors. |
static void MakeTextures2 | ( | CGraphic * | g, | |
GLuint | texture, | |||
CUnitColors * | colors, | |||
int | ow, | |||
int | oh | |||
) | [static] |
Make an OpenGL texture or textures out of a graphic object.
g | The graphic object. | |
texture | Texture. | |
colors | Unit colors. | |
ow | Offset width. | |
oh | Offset height. |
static int PowerOf2 | ( | int | x | ) | [static] |
Find the next power of 2 >= x
void ReloadGraphics | ( | ) |
Reload OpenGL graphics.
Reload OpenGL graphics
std::map<std::string, CGraphic *> GraphicHash [static] |
int HashCount [static] |