$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

CColor Class Reference

A platform independent color. More...

#include <video.h>

List of all members.


Public Member Functions

 CColor (unsigned char r=0, unsigned char g=0, unsigned char b=0, unsigned char a=0)
 operator SDL_Color () const
 Cast to a SDL_Color.

Public Attributes

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

Detailed Description

A platform independent color.

Constructor & Destructor Documentation

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


Member Function Documentation

CColor::operator SDL_Color (  )  const [inline]

Cast to a SDL_Color.


Member Data Documentation

unsigned char CColor::R

unsigned char CColor::G

Red.

unsigned char CColor::B

Green.

unsigned char CColor::A

Blue.


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