previous |  up  | next
 

Index Buffers   

Author:  TheTutor

Graphical data is sent to the video card as a collection of triangles with each triangle consisting of vertices.  An index buffers is a collection of indices into a batch of vertices that represent how to triangulate the vertices.  Using index buffers reduces the size of data that has to be sent to the video card, therefore, increasing overall rendering performance.   The index buffer tutorial shows how to use Direct3D index buffer interface.

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

IDirect3D9::  CreateDevice(), Release()

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

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

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


purchase full version
Access EXE

 
 
 

 

 

 


 C
 C++
 Win32
 Direct3D
 OpenGL
 C#
 Java
 Free Tutorials