What is the Vulkan equivalent of the GtkGLArea (GTK +) widget?

Reference Information. 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) other window for the rendered object image.

So I researched and found a GtkGLArea

widget that seems to do what I want, but for OpenGL.

Is there an equivalent GtkGLArea

? If not, is there any other way to implement what I am thinking about?

+3


source to share


1 answer


There is GdkWindow

one that I believe is behind many of the Gtk graphical types such as GtkWindow

and GtkWidget

, and is available with gtk_*_get_window()

. GdkWindow

has gdk_window_create_vulkan_context()

. With the help GdkVulkanContext

you can get raw types of volcanoes and in theory should be able to render with Vulkan.



+3


source







All Articles