public class VertexBuffer extends GraphicsResource
Modifier and Type | Field and Description |
---|---|
protected BufferUsage |
_usage |
_parent, Disposing, Name, Tag
Constructor and Description |
---|
VertexBuffer(GraphicsDevice graphicsDevice,
java.lang.Class vertexType,
int vertexCount,
BufferUsage usage)
Creates an instance of this object.
|
VertexBuffer(GraphicsDevice graphicsDevice,
VertexDeclaration vertexDeclaration,
int vertexCount,
BufferUsage usage)
Creates an instance of this object.
|
Modifier and Type | Method and Description |
---|---|
BufferUsage |
getBufferUsage() |
<T> void |
GetData(int offsetInBytes,
T[] data,
int startIndex,
int elementCount,
int vertexStride) |
<T> void |
GetData(T[] data) |
<T> void |
GetData(T[] data,
int startIndex,
int elementCount) |
VertexDeclaration |
getVertexDeclaration() |
<T> void |
SetData(int offsetInBytes,
T[] data,
int startIndex,
int elementCount,
int vertexStride) |
<T> void |
SetData(T[] data) |
<T> void |
SetData(T[] data,
int startIndex,
int elementCount) |
java.lang.String |
toString()
Gets a string representation of the current instance.
|
int |
VertexCount() |
Dispose, Dispose, finalize, getGraphicsDevice, IsDisposed, raise_disposing
protected BufferUsage _usage
public VertexBuffer(GraphicsDevice graphicsDevice, VertexDeclaration vertexDeclaration, int vertexCount, BufferUsage usage)
graphicsDevice
- The graphics device.vertexDeclaration
- vertexCount
- usage
- public VertexBuffer(GraphicsDevice graphicsDevice, java.lang.Class vertexType, int vertexCount, BufferUsage usage)
graphicsDevice
- The graphics device.vertexType
- vertexCount
- usage
- public BufferUsage getBufferUsage()
public int VertexCount()
public VertexDeclaration getVertexDeclaration()
public <T> void GetData(T[] data)
public <T> void GetData(T[] data, int startIndex, int elementCount)
public <T> void GetData(int offsetInBytes, T[] data, int startIndex, int elementCount, int vertexStride)
public <T> void SetData(T[] data)
public <T> void SetData(T[] data, int startIndex, int elementCount)
public <T> void SetData(int offsetInBytes, T[] data, int startIndex, int elementCount, int vertexStride)
public java.lang.String toString()
GraphicsResource
toString
in class GraphicsResource