From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KcgQh-0000OA-4M for qemu-devel@nongnu.org; Mon, 08 Sep 2008 09:05:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KcgQd-0000Nt-Ij for qemu-devel@nongnu.org; Mon, 08 Sep 2008 09:05:18 -0400 Received: from [199.232.76.173] (port=52697 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KcgQd-0000Nq-AZ for qemu-devel@nongnu.org; Mon, 08 Sep 2008 09:05:15 -0400 Received: from mail2.shareable.org ([80.68.89.115]:44930) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KcgQc-0003iz-O7 for qemu-devel@nongnu.org; Mon, 08 Sep 2008 09:05:15 -0400 Date: Mon, 8 Sep 2008 14:05:08 +0100 From: Jamie Lokier Subject: Re: [Qemu-devel] [PATCH] opengl rendering in the sdl window Message-ID: <20080908130507.GA4947@shareable.org> References: <20080908110038.GG2315@redhat.com> <6212707131-BeMail@laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <6212707131-BeMail@laptop> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org François Revol wrote: > > Sorry, I wasn't being entirely clear in my suggestion. Cairo itself > > is not > > tied to any toolkit - its dependancy is on libX11 / the RENDER > > extension. > > So, use of Cairo is rather tangential to question of GTK vs SDL - you > > can > > use Cairo with either of them. That said, it may turn out that SDL > > does > > not expose enough of its X11 internals to allow an efficient use of > > Cairo. > > It would need some experimentation to determine for sure, because the > > docs > > aren't entirely clear on this question. > > It would definitely make things much less portable... > Cairo itself is quite a beast to port I heard... (not everyone uses > X11...) Cairo can work with a basic framebuffer, I think, so in principle that should be easy to use on any target, but not accelerated. Cairo's software renderer is said not to be particularly fast, as those things go, in various places (including on the Cairo list last summer). Don't Mozilla/Firefox use Cairo these days? Do they use it on Windows? Regarding SDL and X11, a "raw" Xlib front end (no SDL) would not be much code, if the intent is to do the rendering with something other than SDL, since all it does is create a window and support a few basic events. (It might still not be worth the work, though). -- Jamie