ModelGeometryBuffer

Description

sealed class Tinman.Engine.Models.ModelGeometryBuffer

Derived from

ResourceBase abstract
IModelGeometryListener

Wraps GPU resource objects for an IModelGeometry object.

Public / Constructors

ModelGeometryBuffer


public constructor ModelGeometryBuffer → (2)

context in : IGraphicsContext

[not-null]
The GPU buffer factory to use.

geometry in : IModelGeometry

[not-null]
The model geometry object.

Creates a new instance of ModelGeometryBuffer.

IOException

If an I/O error has occurred while reading the model vertices resp. indices.

RenderException

If a graphics subsystem error has occurred.

Public / Methods

UpdateBuffer


public method UpdateBuffer → ()

Updates the GPU buffers, if necessary.

Public / Attributes

GeometryBuffer


public attribute GeometryBuffer → (get)

value : IGeometryBuffer

[not-null]
The geometry buffer.

The GPU geometry buffer (vertices / indices / instances).