Loading...
Searching...
No Matches
hellfire::IWindow Class Referenceabstract

#include <IWindow.h>

Inheritance diagram for hellfire::IWindow:
Collaboration diagram for hellfire::IWindow:

Public Member Functions

virtual ~IWindow ()=default
 
virtual bool create (int width, int height, const std::string &title)=0
 
virtual void destroy ()=0
 
virtual void swap_buffers ()=0
 
virtual void poll_events ()=0
 
virtual void wait_for_events ()=0
 
virtual void set_event_handler (IWindowEventHandler *event_handler)=0
 
virtual void set_title (const std::string &title)=0
 
virtual void set_size (int width, int height)=0
 
virtual glm::ivec2 get_size () const =0
 
virtual glm::ivec2 get_framebuffer_size () const =0
 
virtual void enable_vsync (bool vsync)=0
 
virtual bool is_key_pressed (int keycode) const =0
 
virtual glm::vec2 get_mouse_position () const =0
 
virtual bool should_close () const =0
 
virtual void set_cursor_mode (CursorMode mode)=0
 
virtual void make_current ()=0
 
virtual void * get_native_handle ()=0
 
virtual float get_elapsed_time ()=0
 
virtual void warp_cursor (double x, double y)=0
 

Protected Attributes

WindowInfo window_info_ = {}
 

Detailed Description

Definition at line 53 of file IWindow.h.

Constructor & Destructor Documentation

◆ ~IWindow()

virtual hellfire::IWindow::~IWindow ( )
virtualdefault

Member Function Documentation

◆ create()

virtual bool hellfire::IWindow::create ( int  width,
int  height,
const std::string &  title 
)
pure virtual

Implemented in hellfire::GLFWWindow.

◆ destroy()

virtual void hellfire::IWindow::destroy ( )
pure virtual

Implemented in hellfire::GLFWWindow.

◆ enable_vsync()

virtual void hellfire::IWindow::enable_vsync ( bool  vsync)
pure virtual

Implemented in hellfire::GLFWWindow.

◆ get_elapsed_time()

virtual float hellfire::IWindow::get_elapsed_time ( )
pure virtual

Implemented in hellfire::GLFWWindow.

◆ get_framebuffer_size()

virtual glm::ivec2 hellfire::IWindow::get_framebuffer_size ( ) const
pure virtual

Implemented in hellfire::GLFWWindow.

◆ get_mouse_position()

virtual glm::vec2 hellfire::IWindow::get_mouse_position ( ) const
pure virtual

Implemented in hellfire::GLFWWindow.

◆ get_native_handle()

virtual void * hellfire::IWindow::get_native_handle ( )
pure virtual

Implemented in hellfire::GLFWWindow.

◆ get_size()

virtual glm::ivec2 hellfire::IWindow::get_size ( ) const
pure virtual

Implemented in hellfire::GLFWWindow.

◆ is_key_pressed()

virtual bool hellfire::IWindow::is_key_pressed ( int  keycode) const
pure virtual

Implemented in hellfire::GLFWWindow.

◆ make_current()

virtual void hellfire::IWindow::make_current ( )
pure virtual

Implemented in hellfire::GLFWWindow.

◆ poll_events()

virtual void hellfire::IWindow::poll_events ( )
pure virtual

Implemented in hellfire::GLFWWindow.

◆ set_cursor_mode()

virtual void hellfire::IWindow::set_cursor_mode ( CursorMode  mode)
pure virtual

Implemented in hellfire::GLFWWindow.

◆ set_event_handler()

virtual void hellfire::IWindow::set_event_handler ( IWindowEventHandler event_handler)
pure virtual

Implemented in hellfire::GLFWWindow.

◆ set_size()

virtual void hellfire::IWindow::set_size ( int  width,
int  height 
)
pure virtual

Implemented in hellfire::GLFWWindow.

◆ set_title()

virtual void hellfire::IWindow::set_title ( const std::string &  title)
pure virtual

Implemented in hellfire::GLFWWindow.

◆ should_close()

virtual bool hellfire::IWindow::should_close ( ) const
pure virtual

Implemented in hellfire::GLFWWindow.

◆ swap_buffers()

virtual void hellfire::IWindow::swap_buffers ( )
pure virtual

Implemented in hellfire::GLFWWindow.

◆ wait_for_events()

virtual void hellfire::IWindow::wait_for_events ( )
pure virtual

Implemented in hellfire::GLFWWindow.

◆ warp_cursor()

virtual void hellfire::IWindow::warp_cursor ( double  x,
double  y 
)
pure virtual

Implemented in hellfire::GLFWWindow.

Member Data Documentation

◆ window_info_

WindowInfo hellfire::IWindow::window_info_ = {}
protected

Definition at line 101 of file IWindow.h.


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