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

Method render

src/Scene/Quad.cpp:57–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57void Quad::render() {
58 if (enabled){
59 glBindVertexArray(VertexArrayID);
60 glDrawArrays(GL_TRIANGLES, 0, (GLsizei) m_vertices.size());
61 glBindVertexArray(0);
62 }
63}
64
65bool Quad::genBuffers() {
66 glGenVertexArrays(1, &VertexArrayID);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected