$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

CPlayerColorGraphic Class Reference

#include <video.h>

Inheritance diagram for CPlayerColorGraphic:

CGraphic gcn::Image

List of all members.


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 CPlayerColorGraphicNew (const std::string &file, int w=0, int h=0)
static CPlayerColorGraphicForceNew (const std::string &file, int w=0, int h=0)

Public Attributes

GLuint * PlayerColorTextures [PlayerMax]

Protected Member Functions

 CPlayerColorGraphic ()

Constructor & Destructor Documentation

CPlayerColorGraphic::CPlayerColorGraphic (  )  [inline, protected]


Member Function Documentation

void CPlayerColorGraphic::DrawPlayerColorFrameClipX ( int  player,
unsigned  frame,
int  x,
int  y 
)

Draw graphic object clipped, flipped, and with player colors.

Parameters:
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.

Parameters:
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.

Parameters:
file Filename
w Width of a frame (optional)
h Height of a frame (optional)
Returns:
New graphic object

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.

Parameters:
file Filename
w Width of a frame (optional)
h Height of a frame (optional)
Returns:
New graphic object

Reimplemented from CGraphic.


Member Data Documentation


The documentation for this class was generated from the following files:
(C) Copyright 1998-2011 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.