Table of Contents

Class EmptyGeometryBufferModel

Namespace
HelixToolkit.SharpDX.Core
Assembly
HelixToolkit.SharpDX.dll
public sealed class EmptyGeometryBufferModel : IGeometryBufferModel, IAttachableBufferModel, IGUID, IDisposable
Inheritance
EmptyGeometryBufferModel
Implements
Inherited Members

Fields

Empty

public static readonly IGeometryBufferModel Empty

Field Value

IGeometryBufferModel

Properties

EffectsManager

Gets or sets the effects manager.

public IEffectsManager? EffectsManager { get; set; }

Property Value

IEffectsManager

The effects manager.

GUID

Gets the unique identifier.

public Guid GUID { get; }

Property Value

Guid

The unique identifier.

Geometry

Gets or sets the geometry.

public Geometry3D? Geometry { get; set; }

Property Value

Geometry3D

The geometry.

IndexBuffer

Gets the index buffer.

public IElementsBufferProxy? IndexBuffer { get; }

Property Value

IElementsBufferProxy

The index buffer.

Topology

Gets or sets the topology.

public PrimitiveTopology Topology { get; set; }

Property Value

PrimitiveTopology

The topology.

VertexBuffer

Gets the vertex buffer.

public IElementsBufferProxy[] VertexBuffer { get; }

Property Value

IElementsBufferProxy[]

The vertex buffer.

VertexStructSize

Gets the size of the vertex structure.

public IEnumerable<int> VertexStructSize { get; }

Property Value

IEnumerable<int>

The size of the vertex structure.

Methods

Attach()

Attaches this instance.

public void Attach()

AttachBuffers(DeviceContextProxy, ref int, IDeviceResources?)

Attaches the buffers.

public bool AttachBuffers(DeviceContextProxy context, ref int vertexBufferStartSlot, IDeviceResources? deviceResources)

Parameters

context DeviceContextProxy

The context.

vertexBufferStartSlot int

The vertex buffer start slot. Returns next available bind slot

deviceResources IDeviceResources

Returns

bool

Detach()

Detaches this instance.

public void Detach()

Dispose()

Releases unmanaged and - optionally - managed resources.

public void Dispose()

UpdateBuffers(DeviceContextProxy, IDeviceResources?)

Updates the buffers.

public bool UpdateBuffers(DeviceContextProxy context, IDeviceResources? deviceResources)

Parameters

context DeviceContextProxy

The context.

deviceResources IDeviceResources

The device resources.

Returns

bool

True if buffer updated.

Events

IndexBufferUpdated

public event EventHandler? IndexBufferUpdated

Event Type

EventHandler

VertexBufferUpdated

public event EventHandler? VertexBufferUpdated

Event Type

EventHandler