VB: Directx 8 3d cube -[RESOLVED]-
ok i am starting to learn dx8 and 3d. But one thing i don't get is why in the turorial on directx4vb.com it has 6 vertices on one side. so 36 vertices for the cube.
Cube(0) = CreateLitVertex(-1, 1, DFC, C011, 0, 0, 0)
Cube(1) = CreateLitVertex(1, 1, DFC, C011, 0, 0, 0)
Cube(2) = CreateLitVertex(-1, -1, DFC, C011, 0, 0, 0)
Cube(3) = CreateLitVertex(1, 1, DFC, C011, 0, 0, 0)
Cube(4) = CreateLitVertex(-1, -1, DFC, C011, 0, 0, 0)
Cube(5) = CreateLitVertex(1, -1, DFC, C011, 0, 0, 0)
thats the code and it has a createlitVertex function. but i don't get why it has 6 vertices instead of 4 for one side of the cube. Can sum1 explain this to me.
if you want to see the whole code goto
http://216.5.163.53/DirectX4Vb/index.asp
it has the tutorial that i am using
i would appreciate it if some1 could explain it to me.
thnx