Open Source Tomb Raider Engine
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

StaticMesh.cpp 493B

12345678910111213141516171819202122
  1. /*!
  2. * \file src/StaticMesh.cpp
  3. * \brief Static Model Meshes
  4. *
  5. * \author xythobuz
  6. */
  7. #include "global.h"
  8. #include "World.h"
  9. #include "StaticMesh.h"
  10. bool StaticMesh::showBoundingBox = false;
  11. void StaticMesh::display(glm::mat4 MVP) {
  12. getWorld().getMesh(mesh).display(MVP);
  13. if (showBoundingBox) {
  14. bbox1->display(MVP, glm::vec3(1.0f, 0.0f, 0.0f), glm::vec3(0.0f, 1.0f, 0.0f));
  15. bbox2->display(MVP, glm::vec3(1.0f, 0.0f, 1.0f), glm::vec3(0.0f, 0.0f, 1.0f));
  16. }
  17. }