Bbop-Library 0.4.1-alpha
Opengl library to build 2d apps and game that implement a light system named Lumop
 
Loading...
Searching...
No Matches
Geometric Class Reference

gère un objet avec de propriété géométrique More...

#include <geometricClass.h>

Inheritance diagram for Geometric:
CollisionBox

Public Member Functions

 Geometric (Vector2f nPos, Vector2f nOrigin, Vector2f nSize, float nRotation)
 
 Geometric (const Geometric &other)
 
 Geometric ()
 
void setPosition (const Vector2f &nPos)
 
virtual void setPosition (float x_, float y_)
 
const Vector2fgetPosition () const
 
void setSize (const Vector2f &nSize)
 
virtual void setSize (float x_, float y_)
 
const Vector2fgetSize () const
 
void setOrigin (const Vector2f &nOrigin)
 
virtual void setOrigin (float x_, float y_)
 
const Vector2fgetOrigin () const
 
virtual void setRotation (float nRotation)
 
const float getRotation () const
 

Protected Attributes

Vector2f pos
 
Vector2f origin
 
Vector2f size
 
float rotation
 

Detailed Description

gère un objet avec de propriété géométrique

Note
Class utile pour décrire toute forme géometrique
Todo
ajouter a shape

Constructor & Destructor Documentation

◆ Geometric() [1/3]

Geometric::Geometric ( Vector2f nPos,
Vector2f nOrigin,
Vector2f nSize,
float nRotation )

◆ Geometric() [2/3]

Geometric::Geometric ( const Geometric & other)

◆ Geometric() [3/3]

Geometric::Geometric ( )

Member Function Documentation

◆ getOrigin()

const Vector2f & Geometric::getOrigin ( ) const

◆ getPosition()

const Vector2f & Geometric::getPosition ( ) const

◆ getRotation()

const float Geometric::getRotation ( ) const

◆ getSize()

const Vector2f & Geometric::getSize ( ) const

◆ setOrigin() [1/2]

void Geometric::setOrigin ( const Vector2f & nOrigin)

◆ setOrigin() [2/2]

void Geometric::setOrigin ( float x_,
float y_ )
virtual

◆ setPosition() [1/2]

void Geometric::setPosition ( const Vector2f & nPos)

◆ setPosition() [2/2]

void Geometric::setPosition ( float x_,
float y_ )
virtual

◆ setRotation()

void Geometric::setRotation ( float nRotation)
virtual

◆ setSize() [1/2]

void Geometric::setSize ( const Vector2f & nSize)

◆ setSize() [2/2]

void Geometric::setSize ( float x_,
float y_ )
virtual

Member Data Documentation

◆ origin

Vector2f Geometric::origin
protected

◆ pos

Vector2f Geometric::pos
protected

◆ rotation

float Geometric::rotation
protected

◆ size

Vector2f Geometric::size
protected

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