____                _       __
    / __ )____  _____   | |     / /___ ___________
   / __  / __ \/ ___/   | | /| / / __ `/ ___/ ___/
  / /_/ / /_/ (__  )    | |/ |/ / /_/ / /  (__  )
 /_____/\____/____/     |__/|__/\__,_/_/  /____/

       A futuristic real-time strategy game.
          This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project. Distributed under the "GNU General Public License"

CColor Class Reference

#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)
 Cast to a SDL_Color.
 operator SDL_Color () const

Public Attributes

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


Detailed Description

Definition at line 137 of file video.h.


Constructor & Destructor Documentation

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

Cast to a SDL_Color.

Definition at line 139 of file video.h.


Member Function Documentation

CColor::operator SDL_Color (  )  const [inline]

Definition at line 143 of file video.h.

References A, B, G, and R.


Member Data Documentation

unsigned char CColor::R

Red.

Definition at line 146 of file video.h.

Referenced by operator SDL_Color(), and SetMinimapTerrainPixel().

unsigned char CColor::G

Green.

Definition at line 149 of file video.h.

Referenced by operator SDL_Color(), and SetMinimapTerrainPixel().

unsigned char CColor::B

Blue.

Definition at line 150 of file video.h.

Referenced by operator SDL_Color(), and SetMinimapTerrainPixel().

unsigned char CColor::A

Alpha.

Definition at line 151 of file video.h.

Referenced by operator SDL_Color(), and SetMinimapTerrainPixel().


The documentation for this class was generated from the following file:

Generated on Sat Feb 21 00:28:23 2009 for Bos Wars by  doxygen 1.5.6