MXVK Vulkan Framework 0.35.0
C++20 Vulkan rendering framework for practical 2D and 3D application development with SDL3.
Loading...
Searching...
No Matches
main.py File Reference

Minimal standalone MXVK Python window example. More...

Go to the source code of this file.

Namespaces

namespace  main

Functions

int main.main ()

Detailed Description

Minimal standalone MXVK Python window example.

Creates a Window directly, sets a clear color, runs the event loop with vsync, and explicitly releases Vulkan resources on shutdown. This is the starting point for applications that do not need custom sprite, input, or model callbacks.

Running the example

python3 python-examples/window/main.py

Lifecycle

The finally clause calls release() even if the event loop raises, which is the required explicit shutdown step for a directly constructed window.

Definition in file main.py.