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

#include <ColorLine.h>

Inheritance diagram for CGF::ColorLine:
CGF::IGraphicsObject

Public Member Functions

 ColorLine (const Vector2f position1, const Vector2f position2, GameContainer *game)
 
 ColorLine (const Vector2f position1, const Vector2f position2, const Color4f color, GameContainer *game)
 
 ~ColorLine ()
 
LinePosition GetPosition ()
 
void SetPosition (Vector2f position1, Vector2f position2)
 
- 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

ColorLine::ColorLine ( const Vector2f  position1,
const Vector2f  position2,
GameContainer game 
)

Create an instance of the ColorLine

ColorLine::ColorLine ( const Vector2f  position1,
const Vector2f  position2,
const Color4f  color,
GameContainer game 
)

Create an instance of the ColorLine

ColorLine::~ColorLine ( )

Destruct this instance of the ColorLine

Member Function Documentation

LinePosition ColorLine::GetPosition ( )

Get the two positions of this line

void ColorLine::SetPosition ( Vector2f  position1,
Vector2f  position2 
)

Set the positions of this line

1st new position of this line 2nd new position of this line

Friends And Related Function Documentation

friend class GraphicsDevice
friend

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