Platform SDK: DirectX

VBuffer Sample

[C++]

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

[Visual Basic]

Description

This sample shows how to use vertex buffers.

Path

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

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

User's Guide

Press F5 to change the device or display mode.

Programming Notes

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.