MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / renderScene

Method renderScene

examples/SoftDemo/SoftDemo.cpp:150–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148 }
149
150 virtual void renderScene()
151 {
152 CommonRigidBodyBase::renderScene();
153 btSoftRigidDynamicsWorld* softWorld = getSoftDynamicsWorld();
154
155 for (int i = 0; i < softWorld->getSoftBodyArray().size(); i++)
156 {
157 btSoftBody* psb = (btSoftBody*)softWorld->getSoftBodyArray()[i];
158 //if (softWorld->getDebugDrawer() && !(softWorld->getDebugDrawer()->getDebugMode() & (btIDebugDraw::DBG_DrawWireframe)))
159 {
160 btSoftBodyHelpers::DrawFrame(psb, softWorld->getDebugDrawer());
161 btSoftBodyHelpers::Draw(psb, softWorld->getDebugDrawer(), softWorld->getDrawFlags());
162 }
163 }
164 }
165};
166
167#define MACRO_SOFT_DEMO(a) \

Callers 6

mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
RenderStereoTargetsMethod · 0.45
mainFunction · 0.45

Calls 4

DrawFunction · 0.85
getDebugDrawerMethod · 0.80
sizeMethod · 0.45
getDrawFlagsMethod · 0.45

Tested by

no test coverage detected