previous |  up  | next
 

D3D Meshes   

Author:  TheTutor

It's hard to have a quality scene without some kind of meshes.  Luckily, DirectX makes it really eash to create meshes using their ID3DXMesh class.  In this tutoiral, we show to use the ID3DXMesh class to make two stock shapes, a sphere and a torus.

Functions/Methods Used:  Direct3DCreate9(), D3DXCreateSphere(), D3DXCreateTorus(), assert(),

IDirect3D9::  CreateDevice(), Release()

IDirect3DDevice9::  BeginScene(), EndScene(), SetFVF(), DrawPrimitiveUP(), Clear(), Release()

ID3DXMesh:: CloneMeshFVF(), LockVertexBuffer(), UnlockVertexBuffer(), GetVertexBuffer(), GetIndexBuffer(), GetNumVertices(), GetNumFaces(), Release()


purchase full version
Access EXE

 
 
 

 

 

 


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