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

Method ~HeightField

testbed/common/HeightField.cpp:73–88  ·  view source on GitHub ↗

Destructor

Source from the content-addressed store, hash-verified

71
72// Destructor
73HeightField::~HeightField() {
74
75 // Destroy the mesh
76 destroy();
77
78 // Destroy the VBOs and VAO
79 mVBOIndices.destroy();
80 mVBOVertices.destroy();
81 mVBONormals.destroy();
82 mVBOTextureCoords.destroy();
83 mVAO.destroy();
84
85 mPhysicsWorld->destroyRigidBody(mBody);
86 mPhysicsCommon.destroyHeightFieldShape(mHeightFieldShape);
87 mPhysicsCommon.destroyHeightField(mHeightField);
88}
89
90// Render the sphere at the correct position and with the correct orientation
91void HeightField::render(openglframework::Shader& shader,

Callers 2

createHeightFieldMethod · 0.80
deleteHeightFieldMethod · 0.80

Calls 4

destroyRigidBodyMethod · 0.80
destroyHeightFieldMethod · 0.80
destroyMethod · 0.45

Tested by

no test coverage detected