Tatooine
|
#include <window.h>
Public Member Functions | |
window (size_t const width, size_t const height, std::string const &title="tatooine") | |
auto | should_close () const -> bool |
auto | swap_buffers () -> void |
![]() | |
base () | |
~base () | |
auto | get () -> GLFWwindow * |
auto | get () const -> GLFWwindow const * |
auto | make_current () -> void |
auto | get_window_size (int *w, int *h) -> void |
![]() | |
void | notify_key_pressed (key k) |
void | notify_key_released (key k) |
void | notify_button_pressed (button b) |
void | notify_button_released (button b) |
void | notify_wheel_up () |
void | notify_wheel_down () |
void | notify_wheel_left () |
void | notify_wheel_right () |
void | notify_cursor_moved (double x, double y) |
void | notify_resize (int width, int height) |
void | notify_close () |
void | add_listener (window_listener &l) |
template<typename Event > | |
void | add_resize_event (Event &&event) |
template<typename Event > | |
void | add_key_pressed_event (Event &&event) |
template<typename Event > | |
void | add_key_released_event (Event &&event) |
template<typename Event > | |
void | add_button_pressed_event (Event &&event) |
template<typename Event > | |
void | add_button_released_event (Event &&event) |
template<typename Event > | |
void | add_cursor_moved_event (Event &&event) |
template<typename Event > | |
void | add_wheel_up_event (Event &&event) |
template<typename Event > | |
void | add_wheel_down_event (Event &&event) |
Additional Inherited Members | |
![]() | |
static auto | release () -> void |
![]() | |
std::vector< window_listener * > | m_window_listeners |
std::vector< std::unique_ptr< base_holder > > | m_events |
![]() | |
GLFWwindow * | m_glfw_window |
tatooine::gl::glfw::window::window | ( | size_t const | width, |
size_t const | height, | ||
std::string const & | title = "tatooine" |
||
) |
auto tatooine::gl::glfw::window::should_close | ( | ) | const -> bool |
auto tatooine::gl::glfw::window::swap_buffers | ( | ) | -> void |