Ignore:
Timestamp:
Nov 7, 2012, 6:27:53 PM (7 years ago)
Author:
sam
Message:

mesh: start working on mesh and submesh stuff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/easymesh/easymesh.cpp

    r1963 r2077  
    121121    m_gpu.shader->SetUniform(m_gpu.normalmat, normalmat);
    122122    m_gpu.shader->SetUniform(m_gpu.damage, damage);
     123    m_gpu.vdecl->Bind();
    123124    m_gpu.vdecl->SetStream(m_gpu.vbo, m_gpu.coord, m_gpu.norm, m_gpu.color);
    124     m_gpu.vdecl->Bind();
    125125    m_gpu.ibo->Bind();
    126126    m_gpu.vdecl->DrawIndexedElements(MeshPrimitive::Triangles,
Note: See TracChangeset for help on using the changeset viewer.