OrbitEngine::Graphics::PathRenderer class

Derived classes

class PathRenderer2D

Public static functions

static auto SolidColor(const Math::Vec4f& color) -> PaintStyle
static auto BoxGradient(const Math::Vec2f& position, const Math::Vec2f& size, float radius, float feather, const Math::Vec4f& innerColor, const Math::Vec4f& outerColor) -> PaintStyle
static auto LinearGradient(const Math::Vec2f& position, const Math::Vec2f& size, const Math::Vec4f& innerColor, const Math::Vec4f& outerColor) -> PaintStyle
static auto ImagePattern(const Math::Vec2f& position, const Math::Vec2f& size, unsigned int texture) -> PaintStyle

Constructors, destructors, conversion operators

PathRenderer() protected
~PathRenderer() protected virtual

Public functions

void beginFrame()
void setDPR(float devicePixelRatio)
void pushCommands(float* data, int count)
void beginPath()
void moveTo(const Math::Vec2f& position)
void lineTo(const Math::Vec2f& position)
void bezierTo(const Math::Vec2f& position, const Math::Vec2f& c1, const Math::Vec2f& c2)
void closePath()
void shapeCareOfStroke(bool careOfStroke)
void roundedRect(const Math::Vec2f& position, const Math::Vec2f& size, const Math::Vec4f& radius)
void ellipse(const Math::Vec2f& position, const Math::Vec2f& size)
void rect(const Math::Vec2f& position, const Math::Vec2f& size)
void roundedRect(const Math::Vec2f& position, const Math::Vec2f& size, float radius)
void circle(const Math::Vec2f& position, float radius)
void fillStyle(const PaintStyle& p)
void fillColor(const Math::Vec4f& color)
void strokeStyle(const PaintStyle& p)
void strokeColor(const Math::Vec4f& color)
void strokeWidth(float strokeWidth)
auto fillStyle() -> PaintStyle
auto strokeStyle() -> PaintStyle
void fill()
void stroke()
void strokeFill()

Protected functions

void pushVertex(const Math::Vec2f& position, const Math::Vec2f& uv) pure virtual
void pushCall(PathRendererCall* call) pure virtual
auto getVertexOffset() -> unsigned int pure virtual

Protected variables

bool p_DirtyState