Hubris Engine Dev
A Project to learn and get into Game Engine developement.
 
Loading...
Searching...
No Matches
vkWindow.h
Go to the documentation of this file.
1#pragma once
3#include <Engine.h>
6
11 class vkWindow final : public Window {
12 private:
13 friend class Engine;
17 struct Details;
18 Details* details= nullptr;
19 vkSwapchain swapchain = vkSwapchain(VK_NULL_HANDLE, (VkFormat)-1, VkExtent2D());
20 vkWindow() = default;
21 static void InitGLFW();
22 public:
23 [[nodiscard]] static vkWindow* Create(int Width, int Height, const std::string& title);
24 virtual ~vkWindow() override;
25 void Init() override;
26 void Update() noexcept override;
27 void Close() noexcept override;
28 Viewport GetViewport() const noexcept override;
29 bool IsValid() const noexcept override;
30 inline bool IsRunning()const noexcept override;
31 void* GetNative() const noexcept override;
32 void* GetSurface()const noexcept;
33 Swapchain* GetSwapchain()const noexcept;
34 };
35}
Swapchain * GetSwapchain() const noexcept
Definition vkWindow.cpp:229
bool IsValid() const noexcept override
Definition vkWindow.cpp:209
Viewport GetViewport() const noexcept override
Gets the window dimension.
Definition vkWindow.cpp:204
void Init() override
Intializes the rendering backend and creates the Window.
Definition vkWindow.cpp:184
void * GetNative() const noexcept override
Get the Native object.
Definition vkWindow.cpp:219
bool IsRunning() const noexcept override
Definition vkWindow.cpp:214
static vkWindow * Create(int Width, int Height, const std::string &title)
Definition vkWindow.cpp:75
void Close() noexcept override
Closes the Window and frees resources.
Definition vkWindow.cpp:197
void Update() noexcept override
Poll events.
Definition vkWindow.cpp:190
void * GetSurface() const noexcept
Definition vkWindow.cpp:224
Screen-space Dimensions. The Depth Values are used by the pipelines.
Definition Window.h:16