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

Method destroy

src/Scene/CarModel.cpp:97–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97void CarModel::destroy() {
98 if(!Config::get().vulkanRender){
99 glDeleteBuffers(1, &vertexBuffer);
100 glDeleteBuffers(1, &uvBuffer);
101 glDeleteBuffers(1, &normalBuffer);
102 glDeleteBuffers(1, &textureIndexBuffer);
103 glDeleteBuffers(1, &polyFlagBuffer);
104 }
105}
106
107void CarModel::render() {
108 if (enabled){

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected