VisualRasterizerGeneric

Description

abstract class Tinman.Engine.Drawing.VisualRasterizerGeneric
<T ref : IVisual>

Derived from

VisualRasterizer abstract

Abstract base class for IVisualRasterizer that only support visuals of a certain base type.

Protected / Methods

Do​Measure​Bounds


[EmptyBody]
protected virtual method DoMeasureBounds → (1)

visual in : T

The supported visual to measure.

returns → Box2F

The measured visual bounds.

Measures the bounds of the given visual in.

This method will only be called if IVisual.Bounds has returned Box2F.Inverse. The IVisualRasterizer.CheckSupport method will return true when visual in is passed to it.

Do​Rasterize


protected abstract method DoRasterize → (4)

visual in : T

The supported visual to rasterize.

visualBounds in : Box2F

The visual bounds.

output in : ColorBuffer

The output buffer, will never be null.

outputBounds in : Box2I

The output bounds, will never be empty and always be inside of output in.

Rasterizes the given visual in.

The IVisualRasterizer.CheckSupport method will return true when visual in is passed to it.