class
RStaticSpriteA static positioned sprite.
Contents
Base classes
- class RRenderableObject
- A renderable object. Allows specifying the position, size and color of the renderable object.
Constructors, destructors, conversion operators
-
RStaticSprite(float x,
float y,
float width,
float height,
RML::
Vector4D& color, RShaderComponent& shader) - Constructor.
- ~RStaticSprite()
- Destructor.
Public functions
- auto getVAO() const -> RVertexArray*
- Gets the vao.
- auto getIBO() const -> RIndexBuffer*
- Gets the ibo.
- auto getShader() const -> RShaderComponent&
- Gets the shader.
Function documentation
Rubeus:: GraphicComponents:: RStaticSprite:: RStaticSprite(float x,
float y,
float width,
float height,
RML:: Vector4D& color,
RShaderComponent& shader)
Constructor.
Parameters | |
---|---|
x | The x offset. |
y | The y offset. |
width | The width. |
height | The height. |
color | The color. |
shader in/out | The shader. |
RVertexArray* Rubeus:: GraphicComponents:: RStaticSprite:: getVAO() const
Gets the vao.
Returns | Null if it fails, else the vao. |
---|
RIndexBuffer* Rubeus:: GraphicComponents:: RStaticSprite:: getIBO() const
Gets the ibo.
Returns | Null if it fails, else the ibo. |
---|
RShaderComponent& Rubeus:: GraphicComponents:: RStaticSprite:: getShader() const
Gets the shader.
Returns | The shader. |
---|