PrimitiveRenderer

Description

abstract class Tinman.Terrain.Rendering.PrimitiveRenderer

Abstract base class for IPrimitiveRenderer implementations.

Public / Methods

Dirty


public method Dirty → ()

The GPU state has changed; the draw buffer, primitive type and tessellation patches mode need to be applied again.

Protected / Constructors

Primitive​Renderer


protected constructor PrimitiveRenderer → ()

Creates a new instance of PrimitiveRenderer.

Protected / Methods

Apply


protected method Apply → ()

Applies the current property values by calling ApplyBuffer and ApplyType, if necessary.

Apply​Buffer


[EmptyBody]
protected virtual method ApplyBuffer → (1)

buffer in : IGpuBuffer

The draw command buffer.

Applies the given draw command buffer.

Apply​Type


[EmptyBody]
protected virtual method ApplyType → (2)

primitive in : Primitive

The graphics primitive type.

patches in : int32

The tessellation patch size.

Applies the given graphics primitive type and tessellation patch mode.