-
-
Notifications
You must be signed in to change notification settings - Fork 3
vke.VkWindow
Jean-Philippe Bruyère edited this page Feb 2, 2020
·
1 revision
Base class to build vulkan application. Provide default swapchain with its command pool and buffers per image and the main present queue
namespace: vke
VkWindow
public class VkWindow
⬜ | prototype | description |
---|---|---|
![]() |
VkWindow (string name="VkWindow", uint _width=800, uint _height=600, bool vSync=false) |
Create a new vulkan enabled window with GLFW. |
⬜ | name | description |
---|---|---|
![]() |
Height |
__ |
![]() |
Title |
__ |
![]() |
VSync |
__ |
![]() |
Width |
__ |
⬜ | prototype | description |
---|---|---|
![]() |
void Close() |
Ask GLFW to close the native window. |
![]() |
void Dispose() |
__ |
![]() |
void Run() |
main window loop, exits on GLFW3 exit event. Before entering the rendering loop, the following methods are called: |
![]() |
void SetCursor(CursorShape cursor) |
Set current mouse cursor in the GLFW window. |
![]() |
void Update() |
custom update method called controled by the UpdateFrequency field, base method is empty. |
![]() |
void UpdateView() |
Suitable for updating the matrices, called at least once before the rendering loop just after 'OnResize'. Then, triggered in the render loop each time the 'updateViewRequested' field is set to 'true', don't forget to reset 'updateViewRequested' to 'false' or call the 'base.UpdateView()' which will reset this boolean. |
⬜ | name | description |
---|