From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JMQK4-0008Bk-PD for qemu-devel@nongnu.org; Tue, 05 Feb 2008 11:07:00 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JMQK3-0008BX-8H for qemu-devel@nongnu.org; Tue, 05 Feb 2008 11:07:00 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JMQK3-0008BU-4M for qemu-devel@nongnu.org; Tue, 05 Feb 2008 11:06:59 -0500 Received: from rn-out-0910.google.com ([64.233.170.191]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JMQK2-00060G-RO for qemu-devel@nongnu.org; Tue, 05 Feb 2008 11:06:58 -0500 Received: by rn-out-0910.google.com with SMTP id e13so873737rng.4 for ; Tue, 05 Feb 2008 08:06:56 -0800 (PST) Message-ID: <47A8899A.9050601@codemonkey.ws> Date: Tue, 05 Feb 2008 10:06:50 -0600 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] OpenGL for OS X References: <3CAC49A0-A2FF-4E70-9D79-1CE78C47A197@kberg.ch> <51BE315A-D8DD-4CAA-82FC-F0B358FB24B1@csgraf.de> In-Reply-To: <51BE315A-D8DD-4CAA-82FC-F0B358FB24B1@csgraf.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 Alexander Graf wrote: > On Feb 1, 2008, at 5:45 PM, Mike Kronenberg wrote: > >> After a little discussion on the list, I made this patch for cocoa.m, >> to replace CoreGraphic by OpenGL. > > Great! Thank you. > >> It's way faster than CG, but it requires a Mac with OpenGL capable >> Graphics Card and at least 8mb of VRAM. >> I think starting with G4 and Highend G3, this requirements are met. > > Maybe I will try if I find some spare time, but as far as I know Apple > provides a quite powerful OpenGL emulation. Last time I ran osx on > Vesa output, everything worked just fine. > >> features: >> [new] draws dirty lines of the window as needed, implemented with >> OpenGL (used the extensions as proposed by Pierre) >> [new] window can be resized >> [fix] conditional builds for Leopard, without linking to a specific sdk >> [fix] lineflicker in fullscreen mode >> >> The Question is, where to draw the line - or - if it needs a switch >> for CG/OpenGL support for cocoa. > > As this OpenGL implementation is based on the Apple pass-through > extensions, I don't think it'd make a good start for a generic > implementation. Additionally I believe SDL is a good choice for the > output too, as they implement optimizations for the specific > platforms. The only sad part is that I have not seen a 64-bit capable > SDL on Mac OS X ;-). I would really like to use OpenGL on non-Apple platforms. OpenGL gives much better scaling than SDL. Typically, and OpenGL app has very little platform specific code. It would be nice if we could use similar code here. Regards, Anthony Liguori >> Please test and comment. >> >> Mike >> >> [1] http://www.kberg.ch/qemu/091patches/cocoa_m_OpenGL.diff.gz >> >