Background: I want to write a CAD application. I want to implement all rendering with Vulkan. And I want to use GTK+.
I don't want a (visible) different window for the rendered image of the object.
So I researched and found the GtkGLArea
widget, which seems to do what I want, but for OpenGL.
Is there an equivalent to GTKGLArea
? If not, is there another way to implement what I'm thinking of?
There is a GdkWindow
which I believe is behind many Gtk graphic types such as GtkWindow
and GtkWidget
and obtainable with gtk_*_get_window()
. GdkWindow
has gdk_window_create_vulkan_context()
. With GdkVulkanContext
you can get raw Vulkan types and theoretically should be able to render to with Vulkan.