Create a the VAO and VBOs to render the debug infos
| 391 | |
| 392 | // Create a the VAO and VBOs to render the debug infos |
| 393 | void 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 | |
| 430 | void SceneDemo::drawTextureQuad() { |
| 431 |