discuss-gnustep
[Top][All Lists]
Advanced

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

Re: NSOpenGLView


From: Enrico Sersale
Subject: Re: NSOpenGLView
Date: Wed, 08 Nov 2006 13:27:28 +0200
User-agent: GNUMail (Version 1.2.0)

On 2006-11-08 12:41:52 +0200 Renaud Molla <renaud.molla@wanadoo.fr> wrote:

Hi,

I'm trying to write an NSOpenGLView application (actually i'm using an example from Stefan Urbanek
        http://lists.gnu.org/archive/html/discuss-gnustep/2004-11/msg00191.html
        and corrected the things so it launches and run),

but the NSOpenGLView doesn't display anything although the drawRect method is called regularly
        through the use of a timer.

It seems that, in the Stefan's example, is the "[[self openGLContext] 
flushBuffer]" at the end of -drawRect: that does the trick, not the timer.

        The view 'contains' what was in the background before the window  
appeared.
        Moving the window don't make it display anything either.
Making the NSOpenGLView the window contentView does not change anything equally.

        The same code works 100% when compiled with cocoa.

        Any help would be appreciated !-)

Renaud Molla





reply via email to

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