| 55 | } |
| 56 | |
| 57 | void Quad::render() { |
| 58 | if (enabled){ |
| 59 | glBindVertexArray(VertexArrayID); |
| 60 | glDrawArrays(GL_TRIANGLES, 0, (GLsizei) m_vertices.size()); |
| 61 | glBindVertexArray(0); |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | bool Quad::genBuffers() { |
| 66 | glGenVertexArrays(1, &VertexArrayID); |
nothing calls this directly
no outgoing calls
no test coverage detected