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
Color4f.h
Go to the documentation of this file.
1 // Filename: Color4f.h
4 
5 //Preprocessor directive designed to cause the current source file to be included only once in a single compilation
6 #pragma once
7 
8 //Includes
9 #include "CGFInclude.h"
10 
11 namespace CGF
12 {
14  {
15  public:
16  Color4f();
17  Color4f(const Color4f &copy);
18  Color4f(unsigned int r, unsigned int g, unsigned int b);
19  Color4f(unsigned int r, unsigned int g, unsigned int b, float a);
20  ~Color4f();
21 
22  void GetAsDXColor(float& r, float& g, float& b);
23  void GetAsDXColor(float& r, float& g, float& b, float& a);
24 
25  Color4f& operator=(const Color4f &param);
26  Color4f& operator+= (const Color4f &param);
27  Color4f& operator-= (const Color4f &param);
28  const Color4f operator+ (const Color4f &param) const ;
29  const Color4f operator- (const Color4f &param) const ;
30 
31  public:
32  unsigned int R;
33  unsigned int G;
34  unsigned int B;
35  float A;
36  };
37 }