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

Public Member Functions | Public Attributes | List of all members
CColor Class Reference

A platform independent color. More...

#include <color.h>

Public Member Functions

 CColor ()
 
 CColor (unsigned char r, unsigned char g, unsigned char b, unsigned char a=0)
 
 CColor (const CColor &color)
 
color.h - The A platform independent color.
void Parse (lua_State *l, int index=-1)
 
 operator SDL_Color () const
 Cast to a SDL_Color. More...
 
 operator IntColor () const
 Cast to IntColor. More...
 

Public Attributes

unsigned char R
 
unsigned char G
 Red. More...
 
unsigned char B
 Green. More...
 
unsigned char A
 Blue. More...
 

Detailed Description

A platform independent color.

Constructor & Destructor Documentation

◆ CColor() [1/3]

CColor::CColor ( )
inline

◆ CColor() [2/3]

CColor::CColor ( unsigned char  r,
unsigned char  g,
unsigned char  b,
unsigned char  a = 0 
)
inline

◆ CColor() [3/3]

CColor::CColor ( const CColor color)
inline

Member Function Documentation

◆ operator IntColor()

CColor::operator IntColor ( ) const

Cast to IntColor.

◆ operator SDL_Color()

CColor::operator SDL_Color ( ) const

Cast to a SDL_Color.

◆ Parse()

void CColor::Parse ( lua_State *  l,
int  index = -1 
)

Member Data Documentation

◆ A

unsigned char CColor::A

Blue.

◆ B

unsigned char CColor::B

Green.

◆ G

unsigned char CColor::G

Red.

◆ R

unsigned char CColor::R

The documentation for this class was generated from the following files:
(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.