Rubeus::GraphicComponents::RSprite class

A sprite compatible with guerrilla renderer.

Base classes

class RRenderableObject
A renderable object. Allows specifying the position, size and color of the renderable object.

Constructors, destructors, conversion operators

RSprite()
Constructor.
RSprite(const float& x, const float& y, const float& width, const float& height, const RML::Vector4D& color)
Constructor.
RSprite(const float& x, const float& y, const float& width, const float& height, RTexture* texture)
Constructor.
~RSprite() virtual
Destructor.

Function documentation

Rubeus::GraphicComponents::RSprite::RSprite(const float& x, const float& y, const float& width, const float& height, const RML::Vector4D& color)

Constructor.

Parameters
x The x offset.
y The y offset.
width The width.
height The height.
color The color of this sprite.

Rubeus::GraphicComponents::RSprite::RSprite(const float& x, const float& y, const float& width, const float& height, RTexture* texture)

Constructor.

Parameters
x The x offset.
y The y offset.
width The width.
height The height.
texture Pointer to the texture to be used.