Table of Contents

Class Shape

Namespace
LibGFX.Graphics.Shapes
Assembly
LibGFX.dll
public abstract class Shape : IGraphicsResource
Inheritance
Shape
Implements
Derived
Inherited Members

Properties

IndexBuffer

public int IndexBuffer { get; set; }

Property Value

int

IsInitialized

Gets a value indicating whether the object has been initialized and is ready for use.

public bool IsInitialized { get; }

Property Value

bool

NormalBuffer

public int NormalBuffer { get; set; }

Property Value

int

TangentBuffer

public int TangentBuffer { get; set; }

Property Value

int

TextureBuffer

public int TextureBuffer { get; set; }

Property Value

int

VertexArray

public int VertexArray { get; set; }

Property Value

int

VertexBuffer

public int VertexBuffer { get; set; }

Property Value

int

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

renderer IRenderDevice

The render device to use for releasing resources. Cannot be null.

DynamicNormals()

public virtual bool DynamicNormals()

Returns

bool

DynamicTangents()

public virtual bool DynamicTangents()

Returns

bool

DynamicUVCoords()

public virtual bool DynamicUVCoords()

Returns

bool

DynamicVertices()

public virtual bool DynamicVertices()

Returns

bool

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

int

GetIndices()

public abstract uint[] GetIndices()

Returns

uint[]

GetNormals()

public abstract float[] GetNormals()

Returns

float[]

GetShapeName()

public abstract string GetShapeName()

Returns

string

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

bool

HasTangents()

public virtual bool HasTangents()

Returns

bool

HasUvCoords()

public virtual bool HasUvCoords()

Returns

bool

Init(IRenderDevice)

Initializes the current instance using the specified render device.

public void Init(IRenderDevice renderer)

Parameters

renderer IRenderDevice

The render device to use for initialization. Cannot be null.