13 #ifndef _CS237_WINDOW_HXX_
14 #define _CS237_WINDOW_HXX_
17 #error "c237-vec2.hxx should not be included directly"
36 glfwHideWindow (this->
_win);
43 glfwShowWindow (this->
_win);
49 virtual void Draw () = 0;
71 Window (std::string title,
int wid,
int ht,
bool resizable, GLFWwindow *share =
nullptr);
80 #endif // !_CS237_WINDOW_HXX_
void Iconify(bool iconified)
method invoked on Iconify events.
virtual ~Window()
destructor: it destroys the underlying GLFW window
Window(std::string title, int wid, int ht, bool resizable, GLFWwindow *share=nullptr)
void Show()
Show the window (a no-op if it is already visible)
Definition: cs237-window.hxx:41
abstract base class for simple GLFW windows used to view buffers, etc.
Definition: cs237-window.hxx:23
bool _isVis
true, when the window is visible
Definition: cs237-window.hxx:75
Definition: cs237-aabb.hxx:18
void Hide()
Hide the window.
Definition: cs237-window.hxx:34
int _wid
Definition: cs237-window.hxx:74
void Reshape(int wid, int ht)
virtual void SetProjectionMatrix()=0
GLFWwindow * _win
the underlying window
Definition: cs237-window.hxx:73
int _ht
window dimensions
Definition: cs237-window.hxx:74