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/src/easymesh/easymesh.cpp

    r1888 r1963  
    126126    m_gpu.vdecl->DrawIndexedElements(MeshPrimitive::Triangles,
    127127                                     0, 0, m_gpu.vertexcount,
    128                                      0, m_gpu.indexcount / 3);
     128                                     0, m_gpu.indexcount);
    129129    m_gpu.ibo->Unbind();
    130130    m_gpu.vdecl->Unbind();
Note: See TracChangeset for help on using the changeset viewer.