Ignore:
Timestamp:
Oct 1, 2012, 1:49:53 AM (7 years ago)
Author:
sam
Message:

gpu: add support for triangle strips and fans, and change the DrawElement
calls so that they take a number of vertices or indexes, not elements.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tutorial/01_triangle.cpp

    r1647 r1963  
    6060        m_vdecl->SetStream(m_vbo, m_coord);
    6161        m_vdecl->Bind();
    62         m_vdecl->DrawElements(MeshPrimitive::Triangles, 0, 1);
     62        m_vdecl->DrawElements(MeshPrimitive::Triangles, 0, 3);
    6363        m_vdecl->Unbind();
    6464    }
Note: See TracChangeset for help on using the changeset viewer.