abstract base class for simple GLFW windows used to view buffers, etc.
More...
#include <cs237-window.hxx>
|
| Window (std::string title, int wid, int ht, bool resizable, GLFWwindow *share=nullptr) |
|
abstract base class for simple GLFW windows used to view buffers, etc.
virtual cs237::Window::~Window |
( |
| ) |
|
|
virtual |
destructor: it destroys the underlying GLFW window
cs237::Window::Window |
( |
std::string |
title, |
|
|
int |
wid, |
|
|
int |
ht, |
|
|
bool |
resizable, |
|
|
GLFWwindow * |
share = nullptr |
|
) |
| |
|
protected |
base-class constructor
- Parameters
-
title | the string to display in the title bar of the window |
wid | the desired window width |
ht | the desired window height |
resizable | if true, then the window will be resizable |
share | a pointer to a window to share resources with (default is nullptr) |
Note that after creating a Window object, the Window will be the current context
virtual void cs237::Window::Draw |
( |
| ) |
|
|
pure virtual |
virtual draw method provided by derived classes to draw the contents of the window. It is called by Refresh.
void cs237::Window::Hide |
( |
| ) |
|
|
inline |
void cs237::Window::Iconify |
( |
bool |
iconified | ) |
|
method invoked on Iconify events.
void cs237::Window::Refresh |
( |
| ) |
|
Refresh the contents of the window. This method is also invoked on Refresh events.
void cs237::Window::Reshape |
( |
int |
wid, |
|
|
int |
ht |
|
) |
| |
method invoked on Reshape events. It resets the viewport and the projection matrix (see SetProjectionMatrix)
virtual void cs237::Window::SetProjectionMatrix |
( |
| ) |
|
|
pure virtual |
virtual method for setting the projection matrix. This method should be called once after the window is created.
void cs237::Window::Show |
( |
| ) |
|
|
inline |
Show the window (a no-op if it is already visible)
bool cs237::Window::_isVis |
|
protected |
true, when the window is visible
GLFWwindow* cs237::Window::_win |
|
protected |
The documentation for this class was generated from the following file: