vulkan window
This commit is contained in:
parent
4b34eb3972
commit
cfb43257a0
9 changed files with 1674 additions and 34 deletions
|
|
@ -10,31 +10,20 @@ int main() {
|
|||
Things like VkDevice are static members of the VulkanDevice class.
|
||||
*/
|
||||
VulkanDevice::CreateDevice();
|
||||
WindowVulkan window(1280, 720, "HelloVulkan");
|
||||
|
||||
/*
|
||||
This creates a window titled "HelloWindow" with a size of 1280x720 pixels.
|
||||
The WindowWaylandVulkan class is a specialized window implementation.
|
||||
that uses the Wayland display server protocol and vulkan renderer (hence the name "WaylandVulkan").
|
||||
*/
|
||||
WindowWaylandVulkan window("HelloWindow", 1280, 720);
|
||||
// /*
|
||||
// StartInit gives you a VkCommandBuffer to use before the event loop starts
|
||||
// Use this for inititializing things like textures.
|
||||
// */
|
||||
// VkCommandBuffer cmd = window.StartInit();
|
||||
|
||||
/*
|
||||
StartInit gives you a VkCommandBuffer to use before the event loop starts
|
||||
Use this for inititializing things like textures.
|
||||
*/
|
||||
VkCommandBuffer cmd = window.StartInit();
|
||||
// /*
|
||||
// FinishInit executes all commands recorded to StartInit.
|
||||
// This must be called before the the event loops starts if you called StartInit before.
|
||||
// */
|
||||
// window.FinishInit();
|
||||
|
||||
/*
|
||||
FinishInit executes all commands recorded to StartInit.
|
||||
This must be called before the the event loops starts if you called StartInit before.
|
||||
*/
|
||||
window.FinishInit();
|
||||
|
||||
/*
|
||||
This starts the window’s main event loop, allowing it to respond to user input and system events.
|
||||
The window will remain open and responsive until it is closed.
|
||||
You can hook into various events through the event system.
|
||||
This call blocks the current thread; to run the event loop asynchronously, use StartAsync instead.
|
||||
*/
|
||||
window.Render();
|
||||
window.StartSync();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue