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
VertexStructThe 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
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
contextDeviceContextProxyThe context.
bufferIElementsBufferProxyThe buffer.
geometryGeometry3DThe geometry.
deviceResourcesIDeviceResourcesThe 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
contextDeviceContextProxyThe context.
bufferIElementsBufferProxyThe buffer.
bufferIndexintgeometryGeometry3DThe geometry.
deviceResourcesIDeviceResourcesThe device resources.
OnDispose(bool)
Releases unmanaged and - optionally - managed resources.
protected override void OnDispose(bool disposeManagedResources)
Parameters
disposeManagedResourcesbooltrueto release both managed and unmanaged resources;falseto release only unmanaged resources.