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

Method registerGraphicsShape

examples/ExampleBrowser/OpenGLGuiHelper.cpp:350–363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

348}
349
350int OpenGLGuiHelper::registerGraphicsShape(const float* vertices, int numvertices, const int* indices, int numIndices, int primitiveType, int textureId)
351{
352 if (textureId == -2)
353 {
354 if (m_data->m_checkedTextureGrey < 0)
355 {
356 m_data->m_checkedTextureGrey = createCheckeredTexture(192, 192, 192);
357 }
358 textureId = m_data->m_checkedTextureGrey;
359 }
360
361 int shapeId = m_data->m_glApp->m_renderer->registerShape(vertices, numvertices, indices, numIndices, primitiveType, textureId);
362 return shapeId;
363}
364
365int OpenGLGuiHelper::registerGraphicsInstance(int shapeIndex, const float* position, const float* quaternion, const float* color, const float* scaling)
366{

Callers 1

initPhysicsMethod · 0.45

Calls 1

registerShapeMethod · 0.45

Tested by

no test coverage detected