Class Shape
public abstract class Shape : IGraphicsResource
- Inheritance
-
Shape
- Implements
- Derived
- Inherited Members
Properties
IndexBuffer
public int IndexBuffer { get; set; }
Property Value
IsInitialized
Gets a value indicating whether the object has been initialized and is ready for use.
public bool IsInitialized { get; }
Property Value
NormalBuffer
public int NormalBuffer { get; set; }
Property Value
TangentBuffer
public int TangentBuffer { get; set; }
Property Value
TextureBuffer
public int TextureBuffer { get; set; }
Property Value
VertexArray
public int VertexArray { get; set; }
Property Value
VertexBuffer
public int VertexBuffer { get; set; }
Property Value
Methods
Dispose(IRenderDevice)
Releases all resources used by the current instance and performs cleanup using the specified render device.
public void Dispose(IRenderDevice renderer)
Parameters
rendererIRenderDeviceThe render device to use for releasing resources. Cannot be null.
DynamicNormals()
public virtual bool DynamicNormals()
Returns
DynamicTangents()
public virtual bool DynamicTangents()
Returns
DynamicUVCoords()
public virtual bool DynamicUVCoords()
Returns
DynamicVertices()
public virtual bool DynamicVertices()
Returns
FreeCPUResources()
Releases any CPU resources that are currently allocated by the component.
public void FreeCPUResources()
Remarks
Call this method when the component no longer needs to perform CPU-intensive operations to allow the system to reclaim resources. After calling this method, the component may not be able to perform certain operations until resources are reallocated.
GetIndexCount()
public abstract int GetIndexCount()
Returns
GetIndices()
public abstract uint[] GetIndices()
Returns
- uint[]
GetNormals()
public abstract float[] GetNormals()
Returns
- float[]
GetShapeName()
public abstract string GetShapeName()
Returns
GetTangents()
public abstract float[] GetTangents()
Returns
- float[]
GetUVCoords()
public abstract float[] GetUVCoords()
Returns
- float[]
GetVertices()
public abstract float[] GetVertices()
Returns
- float[]
HasNormals()
public virtual bool HasNormals()
Returns
HasTangents()
public virtual bool HasTangents()
Returns
HasUvCoords()
public virtual bool HasUvCoords()
Returns
Init(IRenderDevice)
Initializes the current instance using the specified render device.
public void Init(IRenderDevice renderer)
Parameters
rendererIRenderDeviceThe render device to use for initialization. Cannot be null.