MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / ~Box

Method ~Box

testbed/common/Box.cpp:85–97  ·  view source on GitHub ↗

Destructor

Source from the content-addressed store, hash-verified

83
84// Destructor
85Box::~Box() {
86
87 if (totalNbBoxes == 1) {
88
89 // Destroy the VBOs and VAO
90 mVBOVertices.destroy();
91 mVBONormals.destroy();
92 mVAO.destroy();
93 }
94 mPhysicsWorld->destroyRigidBody(mBody);
95 mPhysicsCommon.destroyBoxShape(mBoxShape);
96 totalNbBoxes--;
97}
98
99// Render the cube at the correct position and with the correct orientation
100void Box::render(openglframework::Shader& shader, const openglframework::Matrix4& worldToCameraMatrix) {

Callers

nothing calls this directly

Calls 3

destroyRigidBodyMethod · 0.80
destroyBoxShapeMethod · 0.80
destroyMethod · 0.45

Tested by

no test coverage detected