C# Class Axiom.RenderSystems.OpenGL.GLHardwareIndexBuffer

Summary description for GLHardwareIndexBuffer.
Inheritance: Axiom.Graphics.HardwareIndexBuffer
Show file Open project: WolfgangSt/axiom Class Usage Examples

Public Methods

Method Description
GLHardwareIndexBuffer ( HardwareBufferManagerBase manager, IndexType type, int numIndices, BufferUsage usage, bool useShadowBuffer ) : System

Constructor.

ReadData ( int offset, int length, IntPtr dest ) : void

WriteData ( int offset, int length, IntPtr src, bool discardWholeBuffer ) : void

Protected Methods

Method Description
LockImpl ( int offset, int length, BufferLocking locking ) : IntPtr

UnlockImpl ( ) : void

dispose ( bool disposeManagedResources ) : void

Called to destroy this buffer.

Method Details

GLHardwareIndexBuffer() public method

Constructor.
public GLHardwareIndexBuffer ( HardwareBufferManagerBase manager, IndexType type, int numIndices, BufferUsage usage, bool useShadowBuffer ) : System
manager HardwareBufferManagerBase
type IndexType Index type (16 or 32 bit).
numIndices int Number of indices in the buffer.
usage BufferUsage Usage flags.
useShadowBuffer bool Should this buffer be backed by a software shadow buffer?
return System

LockImpl() protected method

protected LockImpl ( int offset, int length, BufferLocking locking ) : IntPtr
offset int
length int
locking BufferLocking
return System.IntPtr

ReadData() public method

public ReadData ( int offset, int length, IntPtr dest ) : void
offset int
length int
dest System.IntPtr
return void

UnlockImpl() protected method

protected UnlockImpl ( ) : void
return void

WriteData() public method

public WriteData ( int offset, int length, IntPtr src, bool discardWholeBuffer ) : void
offset int
length int
src System.IntPtr
discardWholeBuffer bool
return void

dispose() protected method

Called to destroy this buffer.
protected dispose ( bool disposeManagedResources ) : void
disposeManagedResources bool
return void