Tatooine
Public Member Functions | List of all members
tatooine::gl::glfw::window Struct Reference

#include <window.h>

Inheritance diagram for tatooine::gl::glfw::window:
[legend]
Collaboration diagram for tatooine::gl::glfw::window:
[legend]

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
 
- Public Member Functions inherited from tatooine::gl::glfw::base
 base ()
 
 ~base ()
 
auto get () -> GLFWwindow *
 
auto get () const -> GLFWwindow const *
 
auto make_current () -> void
 
auto get_window_size (int *w, int *h) -> void
 
- Public Member Functions inherited from tatooine::gl::window_notifier
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 Public Member Functions inherited from tatooine::gl::glfw::base
static auto release () -> void
 
- Public Attributes inherited from tatooine::gl::window_notifier
std::vector< window_listener * > m_window_listeners
 
std::vector< std::unique_ptr< base_holder > > m_events
 
- Protected Attributes inherited from tatooine::gl::glfw::base
GLFWwindow * m_glfw_window
 

Constructor & Destructor Documentation

◆ window()

tatooine::gl::glfw::window::window ( size_t const  width,
size_t const  height,
std::string const &  title = "tatooine" 
)

Member Function Documentation

◆ should_close()

auto tatooine::gl::glfw::window::should_close ( ) const -> bool

◆ swap_buffers()

auto tatooine::gl::glfw::window::swap_buffers ( ) -> void

The documentation for this struct was generated from the following file: