Loading src/studio/src/simulator.cpp +34 −24 Original line number Diff line number Diff line Loading @@ -18,32 +18,42 @@ Simulator::Simulator() , object{ { 0.0f, 0.0f, 0.0f }, { // positions //front 0.2f, 0.2f, 0.2f, // top right 0.2f, -0.2f, 0.2f, // bottom right -0.2f, -0.2f, 0.2f, // bottom left -0.2f, 0.2f, 0.2f, // top left //back 0.2f, 0.2f, -0.2f, // top right 0.2f, -0.2f, -0.2f, // bottom right -0.2f, -0.2f, -0.2f, // bottom left -0.2f, 0.2f, -0.2f // top left 0, 0, 0, 1, -0.2f, 0, 1, 0.2f, 0, 0, 0, 0, -0.2f, 2, 0, 0.2f, 2, 0, 0, 0, 0, -0.2f, 0, 3, 0.2f, 0, 3, }, { // front 0, 1, 3, 1, 2, 3, // back 4, 5, 7, 5, 6, 7, // right 0, 1, 4, 1, 4, 5, // left 2, 3, 7, 2, 6, 7, // top 0, 3, 4, 3, 4, 7, // bottom 1, 2, 5, 2, 5, 6 0, 1, 2, 3, 4, 5, 6, 7, 8 } // { // // positions // //front // 0.2f, 0.2f, 0.2f, // top right // 0.2f, -0.2f, 0.2f, // bottom right // -0.2f, -0.2f, 0.2f, // bottom left // -0.2f, 0.2f, 0.2f, // top left // //back // 0.2f, 0.2f, -0.2f, // top right // 0.2f, -0.2f, -0.2f, // bottom right // -0.2f, -0.2f, -0.2f, // bottom left // -0.2f, 0.2f, -0.2f // top left // }, // { // // front // 0, 1, 3, 1, 2, 3, // // back // 4, 5, 7, 5, 6, 7, // // right // 0, 1, 4, 1, 4, 5, // // left // 2, 3, 7, 2, 6, 7, // // top // 0, 3, 4, 3, 4, 7, // // bottom // 1, 2, 5, 2, 5, 6 // } } , myShader{ "./data/shaders/basicshader.vert", "./data/shaders/basicshader.frag" } { Loading Loading
src/studio/src/simulator.cpp +34 −24 Original line number Diff line number Diff line Loading @@ -18,32 +18,42 @@ Simulator::Simulator() , object{ { 0.0f, 0.0f, 0.0f }, { // positions //front 0.2f, 0.2f, 0.2f, // top right 0.2f, -0.2f, 0.2f, // bottom right -0.2f, -0.2f, 0.2f, // bottom left -0.2f, 0.2f, 0.2f, // top left //back 0.2f, 0.2f, -0.2f, // top right 0.2f, -0.2f, -0.2f, // bottom right -0.2f, -0.2f, -0.2f, // bottom left -0.2f, 0.2f, -0.2f // top left 0, 0, 0, 1, -0.2f, 0, 1, 0.2f, 0, 0, 0, 0, -0.2f, 2, 0, 0.2f, 2, 0, 0, 0, 0, -0.2f, 0, 3, 0.2f, 0, 3, }, { // front 0, 1, 3, 1, 2, 3, // back 4, 5, 7, 5, 6, 7, // right 0, 1, 4, 1, 4, 5, // left 2, 3, 7, 2, 6, 7, // top 0, 3, 4, 3, 4, 7, // bottom 1, 2, 5, 2, 5, 6 0, 1, 2, 3, 4, 5, 6, 7, 8 } // { // // positions // //front // 0.2f, 0.2f, 0.2f, // top right // 0.2f, -0.2f, 0.2f, // bottom right // -0.2f, -0.2f, 0.2f, // bottom left // -0.2f, 0.2f, 0.2f, // top left // //back // 0.2f, 0.2f, -0.2f, // top right // 0.2f, -0.2f, -0.2f, // bottom right // -0.2f, -0.2f, -0.2f, // bottom left // -0.2f, 0.2f, -0.2f // top left // }, // { // // front // 0, 1, 3, 1, 2, 3, // // back // 4, 5, 7, 5, 6, 7, // // right // 0, 1, 4, 1, 4, 5, // // left // 2, 3, 7, 2, 6, 7, // // top // 0, 3, 4, 3, 4, 7, // // bottom // 1, 2, 5, 2, 5, 6 // } } , myShader{ "./data/shaders/basicshader.vert", "./data/shaders/basicshader.frag" } { Loading