MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / createDebugVBO

Method createDebugVBO

testbed/src/SceneDemo.cpp:393–428  ·  view source on GitHub ↗

Create a the VAO and VBOs to render the debug infos

Source from the content-addressed store, hash-verified

391
392// Create a the VAO and VBOs to render the debug infos
393void SceneDemo::createDebugVBO() {
394
395 // ----- Lines ----- //
396
397 // Create the VBO for the vertices data
398 mDebugVBOLinesVertices.create();
399
400 // Create the VAO for both VBOs
401 mDebugLinesVAO.create();
402 mDebugLinesVAO.bind();
403
404 // Bind the VBO of vertices
405 mDebugVBOLinesVertices.bind();
406
407 // Unbind the VAO
408 mDebugLinesVAO.unbind();
409
410 mDebugVBOLinesVertices.unbind();
411
412 // ----- Triangles ----- //
413
414 // Create the VBO for the vertices data
415 mDebugVBOTrianglesVertices.create();
416
417 // Create the VAO for both VBOs
418 mDebugTrianglesVAO.create();
419 mDebugTrianglesVAO.bind();
420
421 // Bind the VBO of vertices
422 mDebugVBOTrianglesVertices.bind();
423
424 // Unbind the VAO
425 mDebugTrianglesVAO.unbind();
426
427 mDebugVBOTrianglesVertices.unbind();
428}
429
430void SceneDemo::drawTextureQuad() {
431

Callers

nothing calls this directly

Calls 3

createMethod · 0.45
bindMethod · 0.45
unbindMethod · 0.45

Tested by

no test coverage detected