| 105 | } |
| 106 | |
| 107 | void CarModel::render() { |
| 108 | if (enabled){ |
| 109 | glBindVertexArray(VertexArrayID); |
| 110 | glDrawArrays(GL_TRIANGLES, 0, (GLsizei) m_vertices.size()); |
| 111 | glBindVertexArray(0); |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | bool CarModel::genBuffers() { |
| 116 | if(Config::get().vulkanRender) return true; |
nothing calls this directly
no outgoing calls
no test coverage detected