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 702B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 "glm/vec4.hpp"
  11. #include "TextureManager.h"
  12. enum class RenderMode {
  13. Disabled,
  14. LoadScreen,
  15. Solid,
  16. Wireframe,
  17. Texture
  18. };
  19. class Render {
  20. public:
  21. static RenderMode getMode();
  22. static void setMode(RenderMode m);
  23. static void display();
  24. static void screenShot(const char* filenameBase);
  25. static void drawTexture(float x, float y, float w, float h, glm::vec4 color,
  26. unsigned int texture, TextureManager::TextureStorage s);
  27. private:
  28. static RenderMode mode;
  29. };
  30. #endif