Click here to Skip to main content
16,008,719 members

Comments by ayyangar (Top 3 by date)

ayyangar 20-Jun-12 17:28pm View    
Where do i find the "Improve Question" button? Is it a part of the Visual Studio ?
ayyangar 20-Jun-12 15:09pm View    
It crashed because of CreateVertexBuffer(3* . it does not crash with value 6
however, it only displays the first triangle.
ayyangar 20-Jun-12 14:27pm View    
thanks. now i understand that i need to draw 2 triangles. how do i setup the code. i made 6 vertices all together. now it crashes, it would be better if you send me the code to setup the vertices
CUSTOMVERTEX vertices[] =
{
{ 250.0f, 50.0f, 0.5f, 1.0f, 0xffff0000, }, // x, y, z, rhw, color
{ 250.0f, 250.0f, 0.5f, 1.0f, 0xffff0000, },
{ 50.0f, 250.0f, 0.5f, 1.0f, 0xfffffffff, },
{ 50.0f, 250.0f, 0.5f, 1.0f, 0xfffffffff, },
{ 50.0f, 50.0f, 0.5f, 1.0f, 0xfffffffff, },
{ 250.0f, 50.0f, 0.5f, 1.0f, 0xffff0000, },
};