discuss-gnustep
[Top][All Lists]
Advanced

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

Problems with a GL view


From: Philippe C.D. Robert
Subject: Problems with a GL view
Date: Thu, 25 Jan 2001 15:23:47 +0100

Hi,

I am currently working on a GL view for the GNU 3DKit (G3DCamera) on X11 (xgps).
Basically everything seems to work, except that whenever the view's content gets
rendered/displayed, it is only visible for a very short time before the view
turns gray again (which is almost immediately)...;-)
  
What I do is I have a drawRect: method which renders the GL scene and then
flushes the GL context. Flushing the context means that I first wait for GL to
finish and then swap the GL buffers (if it is double buffered). If I then call
display on the view, the app crashes... (if I don't do this, the view
stays/beomces gray).

Any ideas what could cause this or how I could 'fix' it? Do I have to override
some specific function on NSView perhaps?

cheers, Phil
-- 
Philippe C.D. Robert | http://www.iam.unibe.ch/~robert/

Research Group on Computational Geometry and Graphics
Institute of Computer Science and Appl. Mathematics (IAM), Office 208
Neubrueckstrasse 10, CH-3012 Bern Switzerland, phone: +41 31 6314902



reply via email to

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