Lugdunum
0.1.0
|
#include <Window.hpp>
Classes | |
struct | AcquireImageData |
struct | FrameData |
Public Member Functions | |
Window ()=delete | |
Window (lug::Graphics::Vulkan::Renderer &renderer) | |
Window (const Window &)=delete | |
Window (Window &&)=delete | |
Window & | operator= (const Window &)=delete |
Window & | operator= (Window &&)=delete |
~Window () | |
bool | pollEvent (lug::Window::Event &) override |
Checks if an event is available from the window implementation, and fill it in the event parameter. More... | |
bool | beginFrame (const lug::System::Time &elapsedTime) override final |
bool | endFrame () override final |
const API::Swapchain & | getSwapchain () const |
::lug::Graphics::Render::View * | createView (::lug::Graphics::Render::View::InitInfo &initInfo) override final |
bool | render () override final |
uint16_t | getWidth () const override final |
uint16_t | getHeight () const override final |
bool | initRender () |
void | destroyRender () |
bool | initGui () |
Public Member Functions inherited from lug::Graphics::Render::Window | |
Window ()=default | |
Window (const Window &)=delete | |
Window (Window &&)=delete | |
Window & | operator= (const Window &)=delete |
Window & | operator= (Window &&)=delete |
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... | |
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 |
const std::vector< std::unique_ptr< View > > & | getRenderViews () const |
std::vector< std::unique_ptr< View > > & | getRenderViews () |
Static Public Member Functions | |
static std::unique_ptr< Window > | create (lug::Graphics::Vulkan::Renderer &renderer, Window::InitInfo &initInfo) |
Static Public Member Functions inherited from lug::Window::Window | |
static std::unique_ptr< Window > | create (const InitInfo &initInfo) |
Utility to create a window. More... | |
Private Member Functions | |
bool | init (Window::InitInfo &initInfo) |
bool | initSurface () |
bool | initSwapchainCapabilities () |
bool | initPresentQueue () |
bool | initSwapchain () |
bool | initFramesData () |
bool | buildBeginCommandBuffer () |
bool | buildEndCommandBuffer () |
bool | buildCommandBuffers () |
Private Attributes | |
InitInfo | _initInfo |
lug::Graphics::Vulkan::Renderer & | _renderer |
API::Surface | _surface {} |
API::Swapchain | _swapchain {} |
const API::Queue * | _presentQueue {nullptr} |
const API::QueueFamily * | _presentQueueFamily {nullptr} |
uint32_t | _currentImageIndex {0} |
std::vector< FrameData > | _framesData |
std::vector< AcquireImageData > | _acquireImageDatas |
API::CommandPool | _commandPool {} |
lug::Graphics::Vulkan::Gui | _guiInstance |
bool | _isGuiInitialized |
Additional Inherited Members | |
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 26 of file Window.hpp.
|
delete |
lug::Graphics::Vulkan::Render::Window::Window | ( | lug::Graphics::Vulkan::Renderer & | renderer | ) |
Definition at line 27 of file Window.cpp.
|
delete |
|
delete |
|
virtual |
Reimplemented from lug::Graphics::Render::Window.
Definition at line 29 of file Window.cpp.
|
overridevirtual |
Checks if an event is available from the window implementation, and fill it in the event
parameter.
[out] | event | Event input, to be filled by pollEvent. |
Reimplemented from lug::Window::Window.
Definition at line 33 of file Window.cpp.
|
finaloverridevirtual |
Implements lug::Graphics::Render::Window.
Definition at line 58 of file Window.cpp.
|
finaloverridevirtual |
Implements lug::Graphics::Render::Window.
Definition at line 128 of file Window.cpp.
|
inline |
Definition at line 1 of file Window.inl.
|
finaloverride |
Definition at line 172 of file Window.cpp.
|
finaloverridevirtual |
Implements lug::Graphics::Render::Target.
Definition at line 184 of file Window.cpp.
|
inlinefinaloverridevirtual |
Implements lug::Graphics::Render::Target.
Definition at line 5 of file Window.inl.
|
inlinefinaloverridevirtual |
Implements lug::Graphics::Render::Target.
Definition at line 9 of file Window.inl.
|
static |
Definition at line 199 of file Window.cpp.
bool lug::Graphics::Vulkan::Render::Window::initRender | ( | ) |
Definition at line 625 of file Window.cpp.
void lug::Graphics::Vulkan::Render::Window::destroyRender | ( | ) |
Definition at line 639 of file Window.cpp.
bool lug::Graphics::Vulkan::Render::Window::initGui | ( | ) |
Definition at line 284 of file Window.cpp.
|
private |
Definition at line 584 of file Window.cpp.
|
private |
|
private |
Definition at line 233 of file Window.cpp.
|
private |
Definition at line 294 of file Window.cpp.
|
private |
Definition at line 342 of file Window.cpp.
|
private |
Definition at line 417 of file Window.cpp.
|
private |
Definition at line 482 of file Window.cpp.
|
private |
Definition at line 551 of file Window.cpp.
|
private |
Definition at line 580 of file Window.cpp.
|
private |
Definition at line 86 of file Window.hpp.
|
private |
Definition at line 88 of file Window.hpp.
|
private |
Definition at line 89 of file Window.hpp.
|
private |
Definition at line 90 of file Window.hpp.
|
private |
Definition at line 92 of file Window.hpp.
|
private |
Definition at line 93 of file Window.hpp.
|
private |
Definition at line 94 of file Window.hpp.
|
private |
Definition at line 96 of file Window.hpp.
|
private |
Definition at line 98 of file Window.hpp.
|
private |
Definition at line 100 of file Window.hpp.
|
private |
Definition at line 102 of file Window.hpp.
|
private |
Definition at line 104 of file Window.hpp.