aboutsummaryrefslogtreecommitdiffstats
path: root/tools/examples
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-03-18 11:47:58 +0000
committerKeir Fraser <keir.fraser@citrix.com>2008-03-18 11:47:58 +0000
commit1fa1369d8aa82d26ce0f1626024758404c4d7fb3 (patch)
treedf40a119fd651b36b7f247c26dbac8ec5689837d /tools/examples
parent985bf498a5c9fadbdc0a7a090725de70fca62264 (diff)
downloadxen-1fa1369d8aa82d26ce0f1626024758404c4d7fb3.tar.gz
xen-1fa1369d8aa82d26ce0f1626024758404c4d7fb3.tar.bz2
xen-1fa1369d8aa82d26ce0f1626024758404c4d7fb3.zip
ioemu: SDL rendering using OpenGL
Add opengl support for rendering the guest framebuffer in the SDL window. SDL is needed anyway to open the window and handle the events. Opengl rendering is optional and can be turned off at both compile time and in the vm configuration file. Some of the benefits of using opengl are: - faster rendering, less CPU intensive, especially with good graphic cards; - makes the window resizing possible and hardware accelerated, thus very efficient and smooth; - allows other optimizations like sharing directly a buffer in vram with the guest (not yet implemented). Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Diffstat (limited to 'tools/examples')
-rw-r--r--tools/examples/xmexample.hvm5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/examples/xmexample.hvm b/tools/examples/xmexample.hvm
index a8153b279a..1a1f2487a6 100644
--- a/tools/examples/xmexample.hvm
+++ b/tools/examples/xmexample.hvm
@@ -135,6 +135,11 @@ device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm'
sdl=0
#----------------------------------------------------------------------------
+# enable OpenGL for texture rendering inside the SDL window, default = 1
+# valid only if sdl is enabled.
+opengl=1
+
+#----------------------------------------------------------------------------
# enable VNC library for graphics, default = 1
vnc=1