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/tutorial/08_fbo.cpp

    r1817 r1963  
    100100        m_vdecl->SetStream(m_vbo, m_coord);
    101101        m_vdecl->Bind();
    102         m_vdecl->DrawElements(MeshPrimitive::Triangles, 0, 2);
     102        m_vdecl->DrawElements(MeshPrimitive::Triangles, 0, 6);
    103103        m_vdecl->Unbind();
    104104#endif
     
    109109        m_vdecl->SetStream(m_vbo, m_coord);
    110110        m_vdecl->Bind();
    111         m_vdecl->DrawElements(MeshPrimitive::Triangles, 0, 2);
     111        m_vdecl->DrawElements(MeshPrimitive::Triangles, 0, 6);
    112112        m_vdecl->Unbind();
    113113        m_shader->Unbind();
     
    119119        m_vdecl->SetStream(m_vbo, m_coord);
    120120        m_vdecl->Bind();
    121         m_vdecl->DrawElements(MeshPrimitive::Triangles, 0, 2);
     121        m_vdecl->DrawElements(MeshPrimitive::Triangles, 0, 6);
    122122        m_vdecl->Unbind();
    123123        m_shader->Unbind();
Note: See TracChangeset for help on using the changeset viewer.