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

#include <TextureBox.h>

Inheritance diagram for CGF::TextureBox:
CGF::IGraphicsObject

Public Member Functions

 TextureBox (const Vector2f position, const float width, const float height, char *textureName, GameContainer *game)
 
 ~TextureBox ()
 
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

TextureBox::TextureBox ( const Vector2f  position,
const float  width,
const float  height,
char *  textureName,
GameContainer game 
)

Create an instance of the TextureBox

TextureBox::~TextureBox ( )

Destruct this instance of the Graphics Device

Member Function Documentation

Vector2f TextureBox::GetPosition ( )

Get the position of this box

float TextureBox::GetRotation ( )

Get the rotation angle of this box

void TextureBox::SetPosition ( Vector2f  position)

Set the position of this box

New position of this box

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

Set the position of this box

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

void TextureBox::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: