Login    You have 0 item(s) in your Shopping Cart  

 
 
previous | up | next 
Vertex Streams


 E-mail this product to a friend

Author:  TheTutor

Flexible vertex formats (FVF) on Direct3D are a good way to make custom vertex formats for displaying data.  However, FVF only affords so much flexibility.  For complete flexibility you have to use vertex streams.  By using vertex streams you can create your own custom vertex format which can contain any data, in any order, you choose.  This tutorial shows how to utilize Direct3D vertex elements and vertex declarations to make truly flexible vertex formats.

Functions/Methods Used:  Direct3DCreate9(), D3DXCreateTextureFromFile(), memcpy(), assert()

IDirect3D9::  CreateDevice(), Release()

IDirect3DDevice9::  BeginScene(), EndScene(), CreateVertexBuffer(), CreateIndexBuffer(), CreateVertexDeclaration(), SetFVF(), SetTexture(), SetSamplerState(), SetVertexDeclaration(), SetStreamSource(), SetIndices(), DrawIndexedPrimitive(), Clear(), Release()

IDirect3DVertexBuffer9::  Lock(), Unlock(), Release()

IDirect3DIndexBuffer9::  Lock(), Unlock(), Release()

IDirect3DVertexDeclaration9::  Release()


 
 
 


 GameTutorials Software
 C Tutorials
 C++ Tutorials
 C# Tutorials
 Java Tutorials
 Win32 Tutorials
 Direct3D Tutorials
 OpenGL Tutorials
 Recent Tutorials
 Free Tutorials



Get All 350+ Tutorials Now!


                                                              Main  |  FAQ  |  Terms of Use  |  Links Contacts Forums