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.

Render.h 1.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*!
  2. * \file include/Render.h
  3. * \brief OpenRaider Renderer class
  4. *
  5. * \author Mongoose
  6. * \author xythobuz
  7. */
  8. #ifndef _RENDER_H_
  9. #define _RENDER_H_
  10. #include <vector>
  11. #include <glm/vec4.hpp>
  12. #include "Room.h"
  13. #include "TextureManager.h"
  14. enum class RenderMode {
  15. Disabled,
  16. LoadScreen,
  17. Solid,
  18. Wireframe,
  19. Texture
  20. };
  21. class Render {
  22. public:
  23. static RenderMode getMode();
  24. static void setMode(RenderMode m);
  25. static void display();
  26. static void displayUI();
  27. static void clearRoomList();
  28. static void screenShot(const char* filenameBase);
  29. static void drawTexture(float x, float y, float w, float h, glm::vec4 color,
  30. unsigned int texture, TextureManager::TextureStorage s);
  31. static void setDisplayViewFrustum(bool d) { displayViewFrustum = d; }
  32. static bool getDisplayViewFrustum() { return displayViewFrustum; }
  33. private:
  34. static void buildRoomList(int room);
  35. static RenderMode mode;
  36. static std::vector<Room*> roomList;
  37. static bool displayViewFrustum;
  38. };
  39. #endif