Hello everyone, i'm new to DirectX and i'm having a damn problem! When I fill the vertex buffer with these vertices the triangle isn't rendered:
VERTEX vertices[] =
{
{D3DXVECTOR3( 0.5f, -0.5f, 0.0f )},
{D3DXVECTOR3( 0.0f, 0.5f, 0.0f )},
{D3DXVECTOR3( -0.5f, -0.5f, 0.0f )},
};
BUT when i change the order of the vertices the triangle is rendered!
VERTEX vertices[] =
{
{D3DXVECTOR3( 0.0f, 0.5f, 0.0f )},
{D3DXVECTOR3( 0.5f, -0.5f, 0.0f )},
{D3DXVECTOR3( -0.5f, -0.5f, 0.0f )},
};
Is there any order to add the vertices to the vertex buffer? This is pretty wierd! Thanks in advance.
[]'s