TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

class VertexBufferHandle in Tinman.Engine.Rendering

A resource handle for a shared dynamic vertex buffer.

sealed class VertexBufferHandle implements IResourceHandle

Remarks

A separate IVertexBuffer is created for each instance of VertexBufferHandle.

Public / Constructors

VertexBufferHandle

Creates a new instance of VertexBufferHandle.

public constructor VertexBufferHandle (VertexElements elements, int32 capacity, GpuBufferFlags flags = GpuBufferFlags.Update | GpuBufferFlags.Volatile)
params elements [not-null] The vertex elements.
  capacity [>0] The vertex capacity.
  flags The buffer flags.

Public / Methods

CreateResource

Creates a new resource object, using the given graphics context.

[OwnerReturn]
public method CreateResource (Graphics graphics)
type IResource
params graphics [not-null] The graphics context to use.
returns [not-null] The resource object.
implements IResourceHandle.CreateResource

Remarks:

Resource objects may implement the IMemoryConsumption interface. In this case, the reported memory consumption will be interpreted as an estimate on how much GPU memory is consumed by the resource. This estimate can then be used for resource caching (e.g. CacheMemory).

Exceptions:

Equals

Compares this object with the given one.

[Pure]
public method Equals (IResourceHandle other)
type bool
params other The object to compare to.
returns true if this object is equal to other, false if not.

GetHashCode

[Pure]
public override method GetHashCode ()
type int32