MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / destroy

Method destroy

testbed/opengl-framework/src/Texture2D.cpp:98–106  ·  view source on GitHub ↗

Destroy the texture

Source from the content-addressed store, hash-verified

96
97// Destroy the texture
98void Texture2D::destroy() {
99 if (mID != 0) {
100 glDeleteTextures(1, &mID);
101 mID = 0;
102 mUnit = 0;
103 mWidth = 0;
104 mHeight = 0;
105 }
106}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected