コード例 #1
0
 public void ex_render(bool show_box)
 {
     mesh.Position = pos;
     mesh.executeRender();
     if (show_box)
     {
         mesh.BoundingBox.render();//.executeRender();
     }
 }
コード例 #2
0
 public void ex_render(bool draw_box)
 {
     mesh.Position = pos;
     mesh.executeRender();
     if (draw_box)
     {
         mesh.BoundingBox.move(pos - mesh.BoundingBox.Position);
         mesh.BoundingBox.move(-(mesh.BoundingBox.PMax - mesh.BoundingBox.PMin) * (1f / 2f));
         mesh.BoundingBox.render();//.executeRender();
     }
 }