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

#include <ColorCircle.h>

Inheritance diagram for CGF::ColorCircle:
CGF::IGraphicsObject

Public Member Functions

 ColorCircle (const Vector2f position, const float radius, GameContainer *game, int circleQuality=20)
 
 ColorCircle (const Vector2f position, const float radius, const Color4f color, GameContainer *game, int circleQuality=20)
 
 ~ColorCircle ()
 
Vector2f GetPosition ()
 
void SetPosition (Vector2f position)
 
void SetPosition (float xPos, float yPos)
 
float GetRadius ()
 
- 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

ColorCircle::ColorCircle ( const Vector2f  position,
const float  radius,
GameContainer game,
int  circleQuality = 20 
)

Create an instance of the ColorCircle

ColorCircle::ColorCircle ( const Vector2f  position,
const float  radius,
const Color4f  color,
GameContainer game,
int  circleQuality = 20 
)

Create an instance of the ColorCircle

ColorCircle::~ColorCircle ( )

Destruct this instance of the Graphics Device

Member Function Documentation

Vector2f ColorCircle::GetPosition ( )

Get the position of this circle

float ColorCircle::GetRadius ( )

Get the radius of this circle

void ColorCircle::SetPosition ( Vector2f  position)

Set the position of this circle

New position of this circle

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

Set the position of this circle

New X position of this circle New Y position of this circle

Friends And Related Function Documentation

friend class GraphicsDevice
friend

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