$treeview $search $mathjax
Stratagus
2.2.7
$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 <video.h>
graphic.cpp - The general graphic functions. | |
void | DrawPlayerColorFrameClipX (int player, unsigned frame, int x, int y) |
void | DrawPlayerColorFrameClip (int player, unsigned frame, int x, int y) |
static CPlayerColorGraphic * | New (const std::string &file, int w=0, int h=0) |
static CPlayerColorGraphic * | ForceNew (const std::string &file, int w=0, int h=0) |
Public Attributes | |
GLuint * | PlayerColorTextures [PlayerMax] |
Protected Member Functions | |
CPlayerColorGraphic () |
CPlayerColorGraphic::CPlayerColorGraphic | ( | ) | [inline, protected] |
void CPlayerColorGraphic::DrawPlayerColorFrameClipX | ( | int | player, | |
unsigned | frame, | |||
int | x, | |||
int | y | |||
) |
Draw graphic object clipped, flipped, and with player colors.
player | player number | |
frame | number of frame (object index) | |
x | x coordinate on the screen | |
y | y coordinate on the screen |
void CPlayerColorGraphic::DrawPlayerColorFrameClip | ( | int | player, | |
unsigned | frame, | |||
int | x, | |||
int | y | |||
) |
Draw graphic object clipped and with player colors.
player | player number | |
frame | number of frame (object index) | |
x | x coordinate on the screen | |
y | y coordinate on the screen |
CPlayerColorGraphic * CPlayerColorGraphic::New | ( | const std::string & | file, | |
int | w = 0 , |
|||
int | h = 0 | |||
) | [static] |
Make a new player color graphic object.
file | Filename | |
w | Width of a frame (optional) | |
h | Height of a frame (optional) |
Reimplemented from CGraphic.
CPlayerColorGraphic * CPlayerColorGraphic::ForceNew | ( | const std::string & | file, | |
int | w = 0 , |
|||
int | h = 0 | |||
) | [static] |
Make a new player color graphic object. Don't reuse a graphic from the hash table.
file | Filename | |
w | Width of a frame (optional) | |
h | Height of a frame (optional) |
Reimplemented from CGraphic.
GLuint* CPlayerColorGraphic::PlayerColorTextures[PlayerMax] |