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

Method render

src/Scene/Track.cpp:77–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77void Track::render() {
78 if (enabled){
79 glBindVertexArray(VertexArrayID);
80 glDrawArrays(GL_TRIANGLES, 0, (GLsizei) m_vertices.size());
81 glBindVertexArray(0);
82 }
83}
84
85bool Track::genBuffers() {
86 glGenVertexArrays(1, &VertexArrayID);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected