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