Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Creates an instance of this object.
Syntax
'Declaration
Public Sub New ( _
graphicsDevice As GraphicsDevice, _
vertexType As Type, _
vertexCount As Integer, _
usage As BufferUsage _
)
public VertexBuffer (
GraphicsDevice graphicsDevice,
Type vertexType,
int vertexCount,
BufferUsage usage
)
public:
VertexBuffer(
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.
Exceptions
Exception type | Condition |
---|---|
OutOfMemoryException | There is not enough memory to create this resource. |
Requirements
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics (in microsoft.xna.framework.graphics.dll)
See Also
Reference
VertexBuffer Class
VertexBuffer Members
Microsoft.Xna.Framework.Graphics Namespace
Platforms
Windows Phone