I will give you some source from me game
the source below allows you to draw 3D objects.
this is just a Structure but everyone kinda have to make structures for them.
[highlight=C++]
struct sVertex3D
{
float x, y, z;
DWORD color;
enum FVF
{
FVF_Flags = (D3DFVF_XYZ | D3DFVF_DIFFUSE)
};
};
[/highlight]
sVertex3D Veri[6] =
{
{0.0f ,0.0f , 0.0f, (0xffff0000)},
{56.0f ,0.0f , 0.0f, (0xffff0000)},
{56.0f ,0.0f , 56.0f, (0xffff0000)},
{0.0f ,0.0f , 56.0f, (0xffff0000)},
};
example of a little 3D square