#include <Window.hpp>
Public Types | |
typedef std::shared_ptr< const Window > | ConstPtr |
typedef std::shared_ptr< Window > | Ptr |
Public Member Functions | |
void | bind () |
void | close () |
void | draw (const std::function< void()> &f) |
template<typename T > | |
T | execute (const std::function< T()> &f) |
void | execute (const std::function< void()> &f) |
std::uint32_t | getHeight () const |
std::uint32_t | getWidth () const |
bool | isClosed () const |
void | swapBuffers () |
void | unbind () |
~Window () | |
Static Public Member Functions | |
template<typename... Args> | |
static Ptr | open (Args &&...args) |
static void | pollEvents () |
Private Member Functions | |
void | close_impl () |
GLFWwindow * | getHandle () |
const GLFWwindow * | getHandle () const |
Window (const std::uint32_t width, const std::uint32_t height, const std::string &name) | |
Window (const std::uint32_t width, const std::uint32_t height, const std::string &name, const Monitor::ConstPtr &monitor) | |
Private Attributes | |
GLFWwindow * | window_ |
Friends | |
class | WindowManager |
Represents an operating system Window backed by an OpenGL context
Definition at line 21 of file Window.hpp.
typedef std::shared_ptr<const Window> quori_face::Window::ConstPtr |
Definition at line 27 of file Window.hpp.
typedef std::shared_ptr<Window> quori_face::Window::Ptr |
Definition at line 26 of file Window.hpp.
Window::~Window | ( | ) |
Definition at line 45 of file Window.cpp.
|
private |
Definition at line 20 of file Window.cpp.
|
private |
Definition at line 32 of file Window.cpp.
void Window::bind | ( | ) |
Definition at line 95 of file Window.cpp.
void Window::close | ( | ) |
Close the window. All calls that use the underlying window handle will fail.
Definition at line 51 of file Window.cpp.
|
private |
Definition at line 127 of file Window.cpp.
Definition at line 119 of file Window.cpp.
|
inline |
Definition at line 56 of file Window.hpp.
Definition at line 110 of file Window.cpp.
|
private |
Definition at line 85 of file Window.cpp.
|
private |
std::uint32_t Window::getHeight | ( | ) | const |
Definition at line 76 of file Window.cpp.
std::uint32_t Window::getWidth | ( | ) | const |
Definition at line 67 of file Window.cpp.
bool Window::isClosed | ( | ) | const |
Definition at line 57 of file Window.cpp.
|
inlinestatic |
Definition at line 72 of file Window.hpp.
|
static |
Definition at line 62 of file Window.cpp.
void Window::swapBuffers | ( | ) |
Definition at line 105 of file Window.cpp.
void Window::unbind | ( | ) |
Definition at line 100 of file Window.cpp.
|
friend |
Definition at line 24 of file Window.hpp.
|
private |
Definition at line 86 of file Window.hpp.