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