mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
gtk: add opengl support, using egl
This adds opengl rendering support to the gtk ui, using egl. It's off by default for now, use 'qemu -display gtk,gl=on' to play with this. Note that gtk got native opengl support with release 3.16. There most likely will be a separate implementation for 3.16+, using the native gtk opengl support. This patch covers older versions (and for the time being 3.16 too, hopefully without rendering quirks). Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
7ced9e9f6d
commit
97edf3bd5e
6 changed files with 253 additions and 17 deletions
|
@ -31,13 +31,16 @@ ifeq ($(CONFIG_OPENGL),y)
|
|||
common-obj-y += shader.o
|
||||
common-obj-y += console-gl.o
|
||||
common-obj-y += egl-helpers.o
|
||||
common-obj-$(CONFIG_GTK) += gtk-egl.o
|
||||
endif
|
||||
|
||||
gtk.o-cflags := $(GTK_CFLAGS) $(VTE_CFLAGS)
|
||||
gtk-egl.o-cflags := $(GTK_CFLAGS) $(VTE_CFLAGS) $(OPENGL_CFLAGS)
|
||||
shader.o-cflags += $(OPENGL_CFLAGS)
|
||||
console-gl.o-cflags += $(OPENGL_CFLAGS)
|
||||
egl-helpers.o-cflags += $(OPENGL_CFLAGS)
|
||||
|
||||
gtk-egl.o-libs += $(OPENGL_LIBS)
|
||||
shader.o-libs += $(OPENGL_LIBS)
|
||||
console-gl.o-libs += $(OPENGL_LIBS)
|
||||
egl-helpers.o-libs += $(OPENGL_LIBS)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue