DirectX SDK |
This topic pertains only to application development in Visual Basic. See Direct3D Immediate Mode C++ Samples.
This sample shows how to use vertex buffers.
Source: (SDK root)\Samples\Multimedia\VBSamples\D3dim\Src\VBuffer
Executable: (SDK root)\Samples\Multimedia\VBSamples\D3dim\Bin\VB_vertexBuffer.exe
Press F5 to change the device or display mode.
Before vertex buffers, geometry rendering was accomplished by using an array of vertices passed to DrawPrimitive calls. Vertex buffers are more useful, but need to be specifically created, locked, filled, and unlocked before being rendered with the new DrawPrimitiveVB calls.