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

Method render

examples/OpenGLWindow/SimpleOpenGL3App.cpp:287–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

285 }
286 }
287 virtual void render(sth_texture* texture)
288 {
289 int index = 0;
290
291 float width = 1;
292 b3AlignedObjectArray<unsigned int> indices;
293 indices.resize(texture->nverts);
294 for (int i = 0; i < indices.size(); i++)
295 {
296 indices[i] = i;
297 }
298
299 m_instancingRenderer->drawTexturedTriangleMesh(m_worldPosition, m_worldOrientation, &texture->newverts[0].position.p[0], texture->nverts, &indices[0], indices.size(), m_color, m_textureIndex);
300 }
301};
302
303static void printGLString(const char* name, GLenum s)

Callers

nothing calls this directly

Calls 3

resizeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected