Gère un rectangle/carré More...
#include <shapeClass.h>
Public Member Functions | |
| RectangleShape () | |
| Constructeur par défault du rectangle. | |
| RectangleShape (Vector2f nSize, Vector2f nPos) | |
| Constructeur du rectangle. | |
| RectangleShape (Vector2f nSize, Vector2f nPos, Vector3i nRGB, Vector2f nOrigin) | |
| RectangleShape (Vector2f nSize, Vector2f nPos, Vector3i nRGB, Vector2f nOrigin, float nRotation, float nAlpha) | |
| void | Draw (GLint *renderUniforms) const override |
| Déssine l'objet héritant de la class. | |
Public Member Functions inherited from Shape | |
| Shape (GLfloat *vertices, GLsizeiptr verticesSize, GLuint *indices, GLsizeiptr indicesSize) | |
| Constructeur de Shape. | |
| Shape () | |
| Constructeur par défault de Shape. | |
| Shape (const Shape &other) | |
| Constructeur par copie de shape. | |
| ~Shape () | |
| Destructeur de shape. | |
| void | initShape (GLfloat *vertices, GLsizeiptr verticesSize, GLuint *indices, GLsizeiptr indicesSize) |
| Initialise la Shape comme sont constructeur. | |
| const Vector2f & | getSize () const |
| Renvoie la Taille du Shape. | |
| void | setSize (const Vector2f &nSize) |
| Change la taille du Shape. | |
| void | setSize (float x_, float y_) |
| Change la taille du Shape. | |
| const Vector2f & | getPosition () const |
| Renvoie la position du Shape. | |
| void | setPosition (const Vector2f &nPos) |
| Change la position du Shape. | |
| void | setPosition (float x_, float y_) |
| Change la position de la Shape. | |
| const Vector2f & | getOrigin () const |
| Renvoie l'origine de la Shape. | |
| void | setOrigin (const Vector2f &nOrigin) |
| Change l'origine de la Shape. | |
| void | setOrigin (float x_, float y_) |
| Change l'origine de la Shape. | |
| const Vector3i & | getColor () const |
| Renvoie la couleur de Shape. | |
| void | setColor (const Vector3i &nRGB) |
| Change la couleur de Shape. | |
| void | setColor (int x_, int y_, int z_) |
| Change la couleur de Shape. | |
| float | getAlpha () const |
| Renvoie la transaprence du la Shape. | |
| void | setAlpha (float nAlpha) |
| Change la transaprence de la Shape. | |
| float | getRotation () const |
| Renvoie la rotation de la Shape. | |
| void | setRotation (float nRotation) |
| Change la rotation de la Shape. | |
| CollisionBox & | getCollisionBox () |
| Renvoie la boîte de collision de Shape. | |
| void | setAutoUpdateCollision (bool etat) |
| Change l'état de l'automatisation de la mise a jour de la boîte de collision. | |
| void | move (const Vector2f &vecM) |
| Déplace la Shape. | |
| void | move (float x_, float y_) |
| Déplace la Shape. | |
Additional Inherited Members | |
Protected Attributes inherited from Shape | |
| VAO | shapeVAO |
| VBO | shapeVBO |
| EBO | shapeEBO |
| Vector2f | pos |
| Vector2f | size |
| Vector2f | origin |
| Vector3i | RGB |
| bool | autoUpdateCollision |
| float | rotation |
| CollisionBox | shapeCollisionBox |
| float | alpha |
Gère un rectangle/carré
| RectangleShape::RectangleShape | ( | ) |
Constructeur par défault du rectangle.
Constructeur du rectangle.
| [in] | nSize | Taille du rectangle |
| [in] | nPos | Position du rectangle |
| RectangleShape::RectangleShape | ( | Vector2f | nSize, |
| Vector2f | nPos, | ||
| Vector3i | nRGB, | ||
| Vector2f | nOrigin, | ||
| float | nRotation, | ||
| float | nAlpha ) |
|
overridevirtual |
Déssine l'objet héritant de la class.
Cette méthode est utilisé dans Scene.Draw(BbopDrawable) qui lui transmet le renderModeLoc.
Implements BbopDrawable.