#include <RectangleShape.hpp>
|
| RectangleShape () |
|
| RectangleShape (float width, float height, const Color &color=Color::White) |
|
const Color & | color () const |
|
void | setColor (const Color &color) |
|
void | setWireframeMode (bool wireframeMode) |
|
float | width () const |
|
float | height () const |
|
Vector2f | getSize () const |
|
void | setSize (float width, float height) |
|
void | setOutlineColor (const Color &color) |
|
void | setOutlineThickness (int outlineThickness) |
|
virtual | ~IDrawable ()=default |
| Virtual destructor. More...
|
|
virtual | ~Transformable ()=default |
|
void | setPosition (float x, float y, float z=0) |
|
void | setPosition (const Vector3f &position) |
|
void | setOrigin (float x, float y, float z=0) |
|
void | setOrigin (const Vector3f &origin) |
|
void | setScale (float factorX, float factorY, float factorZ=1) |
|
void | setScale (const Vector3f &factors) |
|
void | setRotation (float angle) |
|
void | setRotation (float angle, const Vector3f &axis) |
|
const Vector3f & | getPosition () const |
|
const Vector3f & | getOrigin () const |
|
const Vector3f & | getScale () const |
|
float | getRotation () const |
|
void | move (float offsetX, float offsetY, float offsetZ=0) |
|
void | move (const Vector3f &offset) |
|
void | scale (float factorX, float factorY, float factorZ=1) |
|
void | scale (const Vector3f &factor) |
|
void | rotate (float angle) |
|
void | rotate (float angle, const Vector3f &axis) |
|
const Transform & | getTransform () const |
|
Definition at line 26 of file RectangleShape.hpp.
§ RectangleShape() [1/2]
gk::RectangleShape::RectangleShape |
( |
| ) |
|
§ RectangleShape() [2/2]
gk::RectangleShape::RectangleShape |
( |
float |
width, |
|
|
float |
height, |
|
|
const Color & |
color = Color::White |
|
) |
| |
§ color()
const Color& gk::RectangleShape::color |
( |
| ) |
const |
|
inline |
§ draw()
Draw the object to a render target.
This is a pure virtual function that has to be implemented by the derived class to define how the drawable should be drawn.
- Parameters
-
target | Render target to draw to |
states | Current render states |
Implements gk::IDrawable.
Definition at line 91 of file RectangleShape.cpp.
§ getSize()
Vector2f gk::RectangleShape::getSize |
( |
| ) |
const |
|
inline |
§ height()
float gk::RectangleShape::height |
( |
| ) |
const |
|
inline |
§ setColor()
void gk::RectangleShape::setColor |
( |
const Color & |
color | ) |
|
|
inline |
§ setOutlineColor()
void gk::RectangleShape::setOutlineColor |
( |
const Color & |
color | ) |
|
|
inline |
§ setOutlineThickness()
void gk::RectangleShape::setOutlineThickness |
( |
int |
outlineThickness | ) |
|
|
inline |
§ setSize()
void gk::RectangleShape::setSize |
( |
float |
width, |
|
|
float |
height |
|
) |
| |
|
inline |
§ setWireframeMode()
void gk::RectangleShape::setWireframeMode |
( |
bool |
wireframeMode | ) |
|
|
inline |
§ updateVertexBuffer()
void gk::RectangleShape::updateVertexBuffer |
( |
| ) |
const |
|
private |
§ width()
float gk::RectangleShape::width |
( |
| ) |
const |
|
inline |
§ m_color
Color gk::RectangleShape::m_color |
|
private |
§ m_height
float gk::RectangleShape::m_height = 0 |
|
private |
§ m_indices
std::array<GLubyte, 6 * 5> gk::RectangleShape::m_indices |
|
private |
§ m_outlineColor
§ m_outlineThickness
int gk::RectangleShape::m_outlineThickness = 0 |
|
private |
§ m_vbo
§ m_width
float gk::RectangleShape::m_width = 0 |
|
private |
§ m_wireframeMode
bool gk::RectangleShape::m_wireframeMode = false |
|
private |
The documentation for this class was generated from the following files: