Table of Contents

Class BillboardBufferModel<VertexStruct>

Namespace
HelixToolkit.SharpDX.Core
Assembly
HelixToolkit.SharpDX.dll
public abstract class BillboardBufferModel<VertexStruct> : GeometryBufferModel, IGeometryBufferModel, IAttachableBufferModel, IGUID, IBillboardBufferModel, IDisposable where VertexStruct : unmanaged

Type Parameters

VertexStruct

The type of the ertex structure.

Inheritance
BillboardBufferModel<VertexStruct>
Implements
Derived
Inherited Members

Constructors

BillboardBufferModel(int, bool)

Initializes a new instance of the BillboardBufferModel<VertexStruct> class.

public BillboardBufferModel(int structSize, bool dynamic = false)

Parameters

structSize int

Size of the structure.

dynamic bool

Properties

TextureView

Gets the texture view.

public ShaderResourceViewProxy? TextureView { get; }

Property Value

ShaderResourceViewProxy

The texture view.

Type

Gets or sets the type.

public BillboardType Type { get; }

Property Value

BillboardType

The type.

Methods

OnCreateIndexBuffer(DeviceContextProxy, IElementsBufferProxy, Geometry3D?, IDeviceResources?)

Called when [create index buffer].

protected override void OnCreateIndexBuffer(DeviceContextProxy context, IElementsBufferProxy buffer, Geometry3D? geometry, IDeviceResources? deviceResources)

Parameters

context DeviceContextProxy

The context.

buffer IElementsBufferProxy

The buffer.

geometry Geometry3D

The geometry.

deviceResources IDeviceResources

The device resources.

OnCreateVertexBuffer(DeviceContextProxy, IElementsBufferProxy, int, Geometry3D?, IDeviceResources?)

Called when [create vertex buffer].

protected override void OnCreateVertexBuffer(DeviceContextProxy context, IElementsBufferProxy buffer, int bufferIndex, Geometry3D? geometry, IDeviceResources? deviceResources)

Parameters

context DeviceContextProxy

The context.

buffer IElementsBufferProxy

The buffer.

bufferIndex int
geometry Geometry3D

The geometry.

deviceResources IDeviceResources

The device resources.

OnDispose(bool)

Releases unmanaged and - optionally - managed resources.

protected override void OnDispose(bool disposeManagedResources)

Parameters

disposeManagedResources bool

true to release both managed and unmanaged resources; false to release only unmanaged resources.