class render::VectorPathRenderable

Inherits: IReflectable

Allows a vector path to be rasterized into pixels.

Public

Constructors

VectorPathRenderable

VectorPathRenderable(const VectorPath &vectorPath, const VectorGraphicsSettings &settings)

VectorPathRenderable

VectorPathRenderable() = default

*********************************************************************

Methods

~VectorPathRenderable

~VectorPathRenderable() noexcept override = default

GetSettings

const VectorGraphicsSettings &GetSettings() const

Returns the settings object used for creating this renderable.

Prepare

virtual SPtr<GpuParameterSet> Prepare() = 0

Prepares GPU parameters for rendering.

Must be called before Render().

Render

virtual void Render(GpuCommandBuffer &commandBuffer) = 0

Records command required for rasterizing the path into pixels.

Before calling this the user is required to have bound a render target containing a color texture and a stencil buffer. Prepare() must be called before this method.

staticGetRttiStatic

static RTTIType *GetRttiStatic()

GetRtti

RTTIType *GetRtti() const override

Returns an interface you can use to access class' Run Time Type Information.

Protected

Fields

mSettings