public class DynamicIndexBuffer extends IndexBuffer
Modifier and Type | Field and Description |
---|---|
Event<EventArgs> |
ContentLost
Occurs when resources are lost due to a lost device event.
|
_parent, Disposing, Name, Tag
Constructor and Description |
---|
DynamicIndexBuffer(GraphicsDevice graphicsDevice,
java.lang.Class indexType,
int indexCount,
BufferUsage usage)
Create a new instance of this class.
|
DynamicIndexBuffer(GraphicsDevice graphicsDevice,
IndexElementSize indexElementSize,
int indexCount,
BufferUsage usage)
Create a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
boolean |
IsContentLost()
Determines if the index buffer data has been lost due to a lost device event.
|
<T> void |
SetData(int offsetInBytes,
T[] data,
int startIndex,
int elementCount,
java.util.EnumSet<SetDataOptions> options)
Sets dynamic index buffer data, specifying the offset, start index, number of elements and options.
|
<T> void |
SetData(T[] data,
int startIndex,
int elementCount,
java.util.EnumSet<SetDataOptions> options)
Sets dynamic index buffer data, specifying the start index, number of elements and options.
|
Dispose, getBufferUsage, GetData, GetData, GetData, getIndexCount, getIndexElementSize, SetData, SetData, SetData
Dispose, finalize, getGraphicsDevice, IsDisposed, raise_disposing, toString
public DynamicIndexBuffer(GraphicsDevice graphicsDevice, IndexElementSize indexElementSize, int indexCount, BufferUsage usage)
graphicsDevice
- The associated graphics device.indexElementSize
- Size of each index element.indexCount
- The number of indices in the buffer.usage
- Behavior options.public DynamicIndexBuffer(GraphicsDevice graphicsDevice, java.lang.Class indexType, int indexCount, BufferUsage usage)
graphicsDevice
- The associated graphics device.indexType
- The index type.indexCount
- The number of indices in the buffer.usage
- Behavior options.public boolean IsContentLost()
public <T> void SetData(T[] data, int startIndex, int elementCount, java.util.EnumSet<SetDataOptions> options)
data
- Array of data.startIndex
- The first element to use.elementCount
- The number of elements to use.options
- Specifies whether existing data in the buffer will be kept after this operation. Dynamic geometry may be rendered on the Xbox 360 by using DrawUserIndexedPrimitives instead of setting the data for the index buffer.public <T> void SetData(int offsetInBytes, T[] data, int startIndex, int elementCount, java.util.EnumSet<SetDataOptions> options)
offsetInBytes
- Offset in bytes from the beginning of the buffer to the data.data
- Array of data.startIndex
- The first element to use.elementCount
- The number of elements to use.options
- Specifies whether existing data in the buffer will be kept after this operation. Dynamic geometry may be rendered on the Xbox 360 by using DrawUserIndexedPrimitives instead of setting the data for the index buffer.