MCPcopy Create free account
hub / github.com/OpenNFS/OpenNFS / render

Method render

src/Scene/Light.cpp:66–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66void Light::render() {
67 if (enabled){
68 glBindVertexArray(VertexArrayID);
69 glDrawArrays(GL_TRIANGLES, 0, (GLsizei) m_vertices.size());
70 glBindVertexArray(0);
71 }
72}
73
74bool Light::genBuffers() {
75 glGenVertexArrays(1, &VertexArrayID);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected