discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Painting gnustep-gui into OpenGL


From: Ivan Vučica
Subject: Re: Painting gnustep-gui into OpenGL
Date: Wed, 27 Apr 2011 11:01:03 +0200

Since I'm at work, I took just a quick look at GLDisplayServer, and it seems to depend on something in gnustep-back called "remote display server". Browsing through current svn, this does not seem to exist anymore; any info on that?

On Wed, Apr 27, 2011 at 10:47, David Chisnall <theraven@sucs.org> wrote:

Depending on the performance that you need, this can be trivial.  You can, for example, paint a view hierarchy into an NSImage and then point OpenGL at this texture.

Can I paint windows that way too? What backend should I use to prevent them from actually appearing on the screen?
 
The difficult part is event handling.  You will need to construct NSEvent instances and inject them into your view hierarchy, after performing some transforms from the OpenGL coordinate space.

Calculating NSEvents that need to be injected isn't really a big deal once I know how to paint stuff. :-)

--
Ivan Vučica
ivan@vucica.net
Coming soon for iPhone, Zombie Ball - http://j.mp/zbivmail



reply via email to

[Prev in Thread] Current Thread [Next in Thread]