DynamicVertexBuffer Constructor (GraphicsDevice, Type, Int32, BufferUsage)
Creates a new instance of this object.
Syntax
'Declaration
Public Sub New ( _
graphicsDevice As GraphicsDevice, _
vertexType As Type, _
vertexCount As Integer, _
usage As BufferUsage _
)
public DynamicVertexBuffer (
GraphicsDevice graphicsDevice,
Type vertexType,
int vertexCount,
BufferUsage usage
)
public:
DynamicVertexBuffer(
GraphicsDevice graphicsDevice,
Type vertexType,
int vertexCount,
BufferUsage usage
)
Parameters
- graphicsDevice
Type: GraphicsDevice
The graphics device. - vertexType
Type: Type
The data type. - vertexCount
Type: Int32
The number of vertices. - usage
Type: BufferUsage
Behavior options; it is good practice for this to match the createOptions parameter in the GraphicsDevice constructor.
Requirements
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics (in microsoft.xna.framework.graphics.dll)
See Also
Reference
DynamicVertexBuffer Class
DynamicVertexBuffer Members
Microsoft.Xna.Framework.Graphics Namespace
Platforms
Windows Phone