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

Function dumpGrid

examples/Heightfield/HeightfieldExample.cpp:315–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313
314#if 0
315static void
316dumpGrid
317(
318 const byte_t * grid,
319 int bytesPerElement,
320 PHY_ScalarType type,
321 int max
322)
323{
324 //std::cerr << "Grid:\n";
325
326 char buffer[32];
327
328 for (int j = 0; j < max; ++j) {
329 for (int i = 0; i < max; ++i) {
330 long offset = j * s_gridSize + i;
331 float z = convertToFloat(grid + offset * bytesPerElement, type);
332 sprintf(buffer, "%6.2f", z);
333 //std::cerr << " " << buffer;
334 }
335 //std::cerr << "\n";
336 }
337}
338#endif
339
340

Callers

nothing calls this directly

Calls 1

convertToFloatFunction · 0.85

Tested by

no test coverage detected