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/02_cube.cpp

    r1647 r1963  
    113113        m_ibo->Bind();
    114114        m_vdecl->DrawIndexedElements(MeshPrimitive::Triangles, 0, 0,
    115                                      m_mesh.Count(), 0, m_indices.Count());
     115                                     m_mesh.Count(), 0, m_indices.Count() * 3);
    116116        m_ibo->Unbind();
    117117        m_vdecl->Unbind();
Note: See TracChangeset for help on using the changeset viewer.