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/03_noise.cpp

    r1827 r1963  
    6969        m_vdecl->SetStream(m_vbo, m_coord);
    7070        m_vdecl->Bind();
    71         m_vdecl->DrawElements(MeshPrimitive::Triangles, 0, 2);
     71        m_vdecl->DrawElements(MeshPrimitive::Triangles, 0, 6);
    7272        m_vdecl->Unbind();
    7373    }
Note: See TracChangeset for help on using the changeset viewer.