void Model::Draw() const {
glBindVertexArray(va);
- glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, handle[ATTRIB_INDEX]);
glDrawElements(
GL_TRIANGLES, // how
count, // count
void BlockModel::Draw() const {
glBindVertexArray(va);
- glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, handle[ATTRIB_INDEX]);
glDrawElements(
GL_TRIANGLES, // how
count, // count
glEnable(GL_LINE_SMOOTH);
glLineWidth(2.0f);
- glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, handle[ATTRIB_INDEX]);
glDrawElements(
GL_LINES, // how
indices.size(), // count