window.hpp 786B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef N_WINDOW_H_
  2. #define N_WINDOW_H_
  3. #include <string>
  4. #include <exception>
  5. #include "gl_core_3_3.h"
  6. #include "wayland.hpp"
  7. //#include <GL/glew.h>
  8. #include <wayland-egl.h>
  9. #include <EGL/egl.h>
  10. #include <GL/gl.h>
  11. #include <glm/gtc/matrix_transform.hpp>
  12. #include "framebuffer.hpp"
  13. class Window {
  14. public:
  15. Framebuffer* framebuffer;
  16. int width, height;
  17. glm::mat4 camera;
  18. Window( unsigned int w, unsigned int h );
  19. ~Window();
  20. void setFullScreen();
  21. void setCurrent();
  22. void setTitle( std::string title );
  23. void setClass( std::string c );
  24. void display();
  25. EGLContext egl_context;
  26. struct wl_surface *surface;
  27. struct wl_shell_surface *shell_surface;
  28. struct wl_egl_window *egl_window;
  29. EGLSurface egl_surface;
  30. };
  31. #endif // N_WINDOW_H_