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::ColorBox Class Reference

#include <ColorBox.h>

Inheritance diagram for CGF::ColorBox:
CGF::IGraphicsObject

Public Member Functions

 ColorBox (const Vector2f position, const float width, const float height, GameContainer *game)
 
 ColorBox (const Vector2f position, const float width, const float height, const Color4f color, GameContainer *game)
 
 ~ColorBox ()
 
Vector2f GetPosition ()
 
void SetPosition (Vector2f position)
 
void SetPosition (float xPos, float yPos)
 
float GetRotation ()
 
void SetRotation (float angle)
 
- Public Member Functions inherited from CGF::IGraphicsObject
virtual ~IGraphicsObject ()
 

Friends

class GraphicsDevice
 

Additional Inherited Members

- Protected Attributes inherited from CGF::IGraphicsObject
int m_indexCount
 
Shaders m_shaderType
 
Color4f m_color
 
Texturem_texture
 

Constructor & Destructor Documentation

ColorBox::ColorBox ( const Vector2f  position,
const float  width,
const float  height,
GameContainer game 
)

Create an instance of the ColorBox

ColorBox::ColorBox ( const Vector2f  position,
const float  width,
const float  height,
const Color4f  color,
GameContainer game 
)

Create an instance of the ColorBox

ColorBox::~ColorBox ( )

Destruct this instance of the Graphics Device

Member Function Documentation

Vector2f ColorBox::GetPosition ( )

Get the position of this box

float ColorBox::GetRotation ( )

Get the rotation angle of this box

void ColorBox::SetPosition ( Vector2f  position)

Set the position of this box

New position of this box

void ColorBox::SetPosition ( float  xPos,
float  yPos 
)

Set the position of this box

New X position of this box New Y position of this box

void ColorBox::SetRotation ( float  angle)

Set the rotation angle of this box

New rotation angle

Friends And Related Function Documentation

friend class GraphicsDevice
friend

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