Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages | Examples

PG_Color Class Reference

List of all members.

Detailed Description

Allows for an abstraction of a particular color.

The purpose of this is to allow one to create new colors. If one is interested in using predefined color constants, see pgcolors.h (note the letter "s" at the end.) A PG_Color can be created from an SDL_Color, a Uint32, or RGB based system.

Author:
Alexander Pipelka
Examples:

paratest.cpp.


Public Member Functions

 PG_Color ()
 PG_Color (const SDL_Color &c)
 PG_Color (Uint32 c)
 PG_Color (Uint8 r, Uint8 g, Uint8 b)
PG_Coloroperator= (const SDL_Color &c)
PG_Coloroperator= (Uint32 c)
 operator Uint32 () const
Uint32 MapRGB (SDL_PixelFormat *format) const
Uint32 MapRGBA (SDL_PixelFormat *format, Uint8 a) const
bool operator!= (const PG_Color &c) const


Constructor & Destructor Documentation

PG_Color::PG_Color  ) 
 

PG_Color::PG_Color const SDL_Color &  c  ) 
 

PG_Color::PG_Color Uint32  c  ) 
 

PG_Color::PG_Color Uint8  r,
Uint8  g,
Uint8  b
 


Member Function Documentation

Uint32 PG_Color::MapRGB SDL_PixelFormat *  format  )  const [inline]
 

Uint32 PG_Color::MapRGBA SDL_PixelFormat *  format,
Uint8  a
const [inline]
 

PG_Color::operator Uint32  )  const
 

bool PG_Color::operator!= const PG_Color c  )  const [inline]
 

PG_Color& PG_Color::operator= Uint32  c  ) 
 

PG_Color& PG_Color::operator= const SDL_Color &  c  ) 
 



The ParaGUI Project - Alexander Pipelka