DirectX SDK

VBuffer Sample

[Visual Basic]

This topic pertains only to application development in C++. See Direct3D Immediate Mode Visual Basic Samples.

[C++]

Description

This sample shows how to use vertex buffers.

Path

Source: (SDK root)\Samples\Multimedia\D3dim\Src\VBuffer

Executable: (SDK root)\Samples\Multimedia\D3dim\Bin\VBuffer.exe

User's Guide

Press F1 to see available commands, or choose from the menu.

Programming Notes

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.