Lugdunum
0.1.0
|
#include <Window.hpp>
Classes | |
struct | InitInfo |
Public Member Functions | |
Window ()=default | |
Window (const Window &)=delete | |
Window (Window &&)=delete | |
Window & | operator= (const Window &)=delete |
Window & | operator= (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 | |
Window & | operator= (const Window &)=delete |
Window & | operator= (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 | |
Target & | operator= (const Target &)=delete |
Target & | operator= (Target &&)=delete |
virtual | ~Target ()=default |
virtual View * | createView (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< Window > | create (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 |
Definition at line 14 of file Window.hpp.
|
default |
|
delete |
|
delete |
|
virtualdefault |
Reimplemented from lug::Window::Window.
Reimplemented in lug::Graphics::Vulkan::Render::Window.
|
pure virtual |
Implemented in lug::Graphics::Vulkan::Render::Window.
|
pure virtual |
Implemented in lug::Graphics::Vulkan::Render::Window.