Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Coordinates of a Box

DanTheRockerDanTheRocker Member Posts: 95
My question is very simple. If I was to make a primitive of a box(6 sided), and am planning to use D3DPT_TRIANGLELIST to render it, how would I set up the initial D3DVERTEX array before i use device->CreateVertexBuffer(). The answer I'm looking for should(i'd like) to be in the format below.

D3DVERTEX aQuad[] =
{
{-1.0f,-1.0f,-1.0f,0.0f,0.0f},
{ 1.0f,-1.0f,-1.0f,1.0f,0.0f},
{-1.0f,-1.0f, 1.0f,0.0f,1.0f},
{ 1.0f,-1.0f, 1.0f,1.0f,1.0f}
};

Sign In or Register to comment.