C++ Game Framework  2013-06-04
CGF is a DirectX 11 game framework, built in C++ and DirectX 11. This is used to contain many to the DirectX functionality and wrap them into a framework to make game development easier.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
CGF::Color4f Class Reference

#include <Color4f.h>

Public Member Functions

 Color4f ()
 
 Color4f (const Color4f &copy)
 
 Color4f (unsigned int r, unsigned int g, unsigned int b)
 
 Color4f (unsigned int r, unsigned int g, unsigned int b, float a)
 
 ~Color4f ()
 
void GetAsDXColor (float &r, float &g, float &b)
 
void GetAsDXColor (float &r, float &g, float &b, float &a)
 
Color4foperator= (const Color4f &param)
 
Color4foperator+= (const Color4f &param)
 
Color4foperator-= (const Color4f &param)
 
const Color4f operator+ (const Color4f &param) const
 
const Color4f operator- (const Color4f &param) const
 

Public Attributes

unsigned int R
 
unsigned int G
 
unsigned int B
 
float A
 

Constructor & Destructor Documentation

Color4f::Color4f ( )

Constructor for the Color4f

Color4f::Color4f ( const Color4f copy)

Copy Constructor for the Color4f

copy Color to copy

Color4f::Color4f ( unsigned int  r,
unsigned int  g,
unsigned int  b 
)

Constructor for the Color4f

Red value for the color Green value for the color Blue value for the color

Color4f::Color4f ( unsigned int  r,
unsigned int  g,
unsigned int  b,
float  a 
)

Constructor for the Color4f

Red value for the color Green value for the color Blue value for the color Alpha value for the color

Color4f::~Color4f ( )

Destructor for the Vector3f

Member Function Documentation

void Color4f::GetAsDXColor ( float &  r,
float &  g,
float &  b 
)

Get the color in DirectX format

Red value for the color Green value for the color Blue value for the color

void Color4f::GetAsDXColor ( float &  r,
float &  g,
float &  b,
float &  a 
)

Get the color in DirectX format

Red value for the color Green value for the color Blue value for the color Alpha value for the color

const Color4f Color4f::operator+ ( const Color4f param) const
Parameters
Color4fto add
Color4f & Color4f::operator+= ( const Color4f param)

+= operator for the Color4f

Parameters
Color4fto add
const Color4f Color4f::operator- ( const Color4f param) const
Parameters
Color4fto add
Color4f & Color4f::operator-= ( const Color4f param)

-= operator for the Color4f

Parameters
Color4fto add
Color4f & Color4f::operator= ( const Color4f param)

= operator for the Color4f

Parameters
Color4fto copy

Member Data Documentation

float CGF::Color4f::A
unsigned int CGF::Color4f::B
unsigned int CGF::Color4f::G
unsigned int CGF::Color4f::R

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