| 75 | } |
| 76 | |
| 77 | void Track::render() { |
| 78 | if (enabled){ |
| 79 | glBindVertexArray(VertexArrayID); |
| 80 | glDrawArrays(GL_TRIANGLES, 0, (GLsizei) m_vertices.size()); |
| 81 | glBindVertexArray(0); |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | bool Track::genBuffers() { |
| 86 | glGenVertexArrays(1, &VertexArrayID); |
nothing calls this directly
no outgoing calls
no test coverage detected