Changeset 1248


Ignore:
Timestamp:
Apr 21, 2012, 2:31:01 PM (8 years ago)
Author:
sam
Message:

tutorial: get rid of a hardcoded value.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/tutorial/02_cube.cpp

    r1247 r1248  
    148148        m_vdecl->Bind();
    149149        m_ibo->Bind();
    150         m_vdecl->DrawIndexedElements(MeshPrimitive::Triangles, 0, 0, 8, 0,
    151                                      m_indices.Count());
     150        m_vdecl->DrawIndexedElements(MeshPrimitive::Triangles, 0, 0,
     151                                     m_mesh.Count(), 0, m_indices.Count());
    152152        m_ibo->Unbind();
    153153        m_vdecl->Unbind();
     
    159159    Array<vec3> m_mesh;
    160160    Array<i16vec3> m_indices;
     161
    161162    Shader *m_shader;
    162163    ShaderAttrib m_coord, m_color;
     
    165166    VertexBuffer *m_vbo;
    166167    IndexBuffer *m_ibo;
     168
    167169    bool m_ready;
    168170};
Note: See TracChangeset for help on using the changeset viewer.