OrbitEngine::Graphics::SpriteRenderer class

Base classes

class Renderer2D virtual

Derived classes

class SpriteBatcher

Public functions

void bindColor(const Math::Color4f& color)
void bindTexture(Texture* texture)
void rect(const Math::Vec2f& position, const Math::Vec2f& size)
void rect(const Math::Vec2f& position, const Math::Vec2f& size, const Math::UV& uvs, bool flipX = false, bool flipY = false)

Protected functions

void begin() virtual
void end() virtual
auto handleTexture(Texture* tex) -> int pure virtual
void submitRect(const Math::Vec2f(&positions)[4], const Math::Vec2f(&uvs)[4], const Math::Color4f& color, unsigned int texture) pure virtual