23 #ifndef SRC_VISUALIZATION_OPENGL_WINDOW_HPP_
24 #define SRC_VISUALIZATION_OPENGL_WINDOW_HPP_
26 #include <application/KeyHandlerRegistry.hpp>
44 namespace visualization {
62 Window(std::string name_ =
"OpenGlWindow",
63 unsigned int position_x_ = 0,
unsigned int position_y_ = 0,
64 unsigned int width_ = 512,
unsigned int height_ = 512);
75 unsigned int getId()
const;
92 virtual void mouseHandler(
int button,
int state,
int x,
int y) { };
Window(std::string name_="OpenGlWindow", unsigned int position_x_=0, unsigned int position_y_=0, unsigned int width_=512, unsigned int height_=512)
Declaration of a class encapsulating methods for drawing in OpenGL windows.
Class offering methods for drawing in OpenGL windows.
unsigned int getId() const
unsigned int previous_width
virtual void mouseHandler(int button, int state, int x, int y)
void keyhandlerFullscreen(void)
std::string getName() const
virtual void reshapeHandler(int width_, int height_)
unsigned int previous_height
Parent class of all OpenGL-based windows (abstract).
virtual void displayHandler(void)=0