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

#include <DrawableString.h>

Inheritance diagram for CGF::DrawableString:
CGF::IGraphicsObject

Public Member Functions

 DrawableString (const Vector2f position, char *string, Font *font, GameContainer *game)
 
 DrawableString (const Vector2f position, char *string, Font *font, Color4f color, GameContainer *game)
 
 ~DrawableString ()
 
Vector2f GetPosition ()
 
void SetPosition (Vector2f position)
 
void SetPosition (float xPos, float yPos)
 
- 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

DrawableString::DrawableString ( const Vector2f  position,
char *  string,
Font font,
GameContainer game 
)

Create an instance of the DrawableString

DrawableString::DrawableString ( const Vector2f  position,
char *  string,
Font font,
Color4f  color,
GameContainer game 
)

Create an instance of the DrawableString

DrawableString::~DrawableString ( )

Destruct this instance of the Font

Member Function Documentation

Vector2f DrawableString::GetPosition ( )

Get the position of this text

void DrawableString::SetPosition ( Vector2f  position)

Set the position of this box

New position of this text

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

Set the position of this box

New X position of this text New Y position of this text

Friends And Related Function Documentation

friend class GraphicsDevice
friend

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