Class PositionalRenderer
- Namespace
- Termule.Engine.Components
- Assembly
- Termule.Engine.dll
Base component for renderers that draw relative to their local IPositionProvider's position.
public abstract class PositionalRenderer : Renderer
- Inheritance
-
PositionalRenderer
- Derived
- Inherited Members
Constructors
PositionalRenderer()
Initializes a new instance of the PositionalRenderer class.
public PositionalRenderer()
Properties
Offset
Gets an offset applied to the position before rendering.
protected virtual Vector Offset { get; }
Property Value
RenderInTargetSpace
Gets or sets a value indicating whether the IPositionProvider's position should be treated as target-space during rendering.
public bool RenderInTargetSpace { get; set; }
Property Value
Methods
Render(IRenderTarget, Vector)
Renders to the provided IRenderTarget.
protected override sealed void Render(IRenderTarget target, Vector viewOrigin)
Parameters
targetIRenderTargetThe target to render to.
viewOriginVectorThe origin of the view in world-space.