Ignore:
Timestamp:
Oct 1, 2012, 1:49:53 AM (8 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/scene.cpp

    r1945 r1963  
    256256
    257257        /* Draw arrays */
    258         data->m_vdecl->DrawElements(MeshPrimitive::Triangles, 0, (n - i) * 2);
     258        data->m_vdecl->DrawElements(MeshPrimitive::Triangles, 0, (n - i) * 6);
    259259        data->m_vdecl->Unbind();
    260260        data->tiles[i].tileset->Unbind();
Note: See TracChangeset for help on using the changeset viewer.