Lugdunum  0.1.0
Classes | Public Member Functions | List of all members
lug::Graphics::Render::Window Class Referenceabstract

#include <Window.hpp>

Inheritance diagram for lug::Graphics::Render::Window:
[legend]
Collaboration diagram for lug::Graphics::Render::Window:
[legend]

Classes

struct  InitInfo
 

Public Member Functions

 Window ()=default
 
 Window (const Window &)=delete
 
 Window (Window &&)=delete
 
Windowoperator= (const Window &)=delete
 
Windowoperator= (Window &&)=delete
 
virtual ~Window ()=default
 
virtual bool beginFrame (const lug::System::Time &elapsedTime)=0
 
virtual bool endFrame ()=0
 
- Public Member Functions inherited from lug::Window::Window
 Window (const Window &)=delete
 
 Window (Window &&)=delete
 
Windowoperator= (const Window &)=delete
 
Windowoperator= (Window &&)=delete
 
bool isOpen () const
 Determines if the window is open. More...
 
virtual bool pollEvent (lug::Window::Event &event)
 Checks if an event is available from the window implementation, and fill it in the event parameter. More...
 
void close ()
 Close the window gracefully. More...
 
void setKeyRepeat (bool state)
 Enables or disables key repeat. More...
 
bool isKeyPressed (Keyboard::Key key) const
 Determines if a key pressed. More...
 
bool isMousePressed (Mouse::Button button) const
 Determines if a mouse button pressed. More...
 
const Math::Vec2i & getMousePos () const
 Retrieves the mouses position. More...
 
void setMousePos (const Math::Vec2i &mousePosition)
 Sets the mouse position. More...
 
Math::Vec2i getWindowSize () const
 Gets the window size. More...
 
void setMouseCursorVisible (bool visible)
 Sets the visibility of the mouse cursor (hide/show) More...
 
- Public Member Functions inherited from lug::Graphics::Render::Target
 Target ()=default
 
 Target (const Target &)=delete
 
 Target (Target &&)=delete
 
Targetoperator= (const Target &)=delete
 
Targetoperator= (Target &&)=delete
 
virtual ~Target ()=default
 
virtual ViewcreateView (View::InitInfo &initInfo)=0
 
virtual bool render ()=0
 
virtual uint16_t getWidth () const =0
 
virtual uint16_t getHeight () const =0
 
const std::vector< std::unique_ptr< View > > & getRenderViews () const
 
std::vector< std::unique_ptr< View > > & getRenderViews ()
 

Additional Inherited Members

- Static Public Member Functions inherited from lug::Window::Window
static std::unique_ptr< Windowcreate (const InitInfo &initInfo)
 Utility to create a window. More...
 
- Public Attributes inherited from lug::Window::Window
GamePadEvent _gamePadState {{0.0f, 0.0f}, {0.0f, 0.0f}}
 
TouchScreenEvent _touchScreenState {{{0, 0}, {0, 0}}, lug::Window::TouchScreenEvent::GestureState::None, false, false, false}
 
- Protected Member Functions inherited from lug::Window::Window
 Window ()
 
bool init (const InitInfo &initInfo)
 
void initKeyState ()
 Inits every key in _keyState to false. More...
 
void initMouseState ()
 Inits every button in _mouseState to false. More...
 
- Protected Attributes inherited from lug::Window::Window
priv::WindowImpl_impl {nullptr}
 
VideoMode _mode {800, 600, 8, 8, 8, 60}
 
std::unordered_map< Keyboard::Key, bool > _keyState
 
std::unordered_map< Mouse::Button, bool > _mouseState
 
Math::Vec2i _mousePosition {0, 0}
 
- Protected Attributes inherited from lug::Graphics::Render::Target
std::vector< std::unique_ptr< View > > _renderViews
 

Detailed Description

Definition at line 14 of file Window.hpp.

Constructor & Destructor Documentation

◆ Window() [1/3]

lug::Graphics::Render::Window::Window ( )
default

◆ Window() [2/3]

lug::Graphics::Render::Window::Window ( const Window )
delete

◆ Window() [3/3]

lug::Graphics::Render::Window::Window ( Window &&  )
delete

◆ ~Window()

virtual lug::Graphics::Render::Window::~Window ( )
virtualdefault

Reimplemented from lug::Window::Window.

Reimplemented in lug::Graphics::Vulkan::Render::Window.

Member Function Documentation

◆ operator=() [1/2]

Window& lug::Graphics::Render::Window::operator= ( const Window )
delete

◆ operator=() [2/2]

Window& lug::Graphics::Render::Window::operator= ( Window &&  )
delete

◆ beginFrame()

virtual bool lug::Graphics::Render::Window::beginFrame ( const lug::System::Time elapsedTime)
pure virtual

◆ endFrame()

virtual bool lug::Graphics::Render::Window::endFrame ( )
pure virtual

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