| 64 | } |
| 65 | |
| 66 | void Light::render() { |
| 67 | if (enabled){ |
| 68 | glBindVertexArray(VertexArrayID); |
| 69 | glDrawArrays(GL_TRIANGLES, 0, (GLsizei) m_vertices.size()); |
| 70 | glBindVertexArray(0); |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | bool Light::genBuffers() { |
| 75 | glGenVertexArrays(1, &VertexArrayID); |
nothing calls this directly
no outgoing calls
no test coverage detected