Hi all!
I have similar problems with porting an app from Windows and Linux to
Mac OS X (Panther 10.3.5).
See my detailed comments below!
On Thu, 2004-11-04 at 10:04, Hannes Krueger wrote:
> Am Donnerstag, 4. November 2004 10:03 schrieben Sie:
> > > the trace of functions called is like:
> > >
> > > glutInit(&argc, argv)
> > > glutInitDisplayMode(GLUT_RGBA | GLUT_DOUBLE | GLUT_DEPTH)
> > > glutInitWindowSize
> > > glutInitWindowPos
> > > glutCreateWindow
> > >
> > > glutDisplayFunc
> > > glutReshapeFunc
> > >
> > > ... after this the first "real" gl functions are called:
> > >
Same for me. I have created an "instrumented" GLUT version that does
some tracing into a log file. The app behaves to the book but I still
get no reaction from the app.
I *do* get a blank window that sets the cursor to the Busy Cursor when
entering the window. When I drag the upper part of the window I can move
it around. Beyond that no response. I do not get to the display
function, i.e. the display callback isn't called. Why? Well, it would be
great to get some help on that one! ;-)
> > > glPixelStorei(GL_PACK_ALIGNMENT,1)
> > > glDepthFunc(GL_LESS)
> > >
> > > When running the program it crashes at the first gl-call.
> > > (glPixelStorei, or when commented out glPixelStorei at glDepthFunc....)
> >
> > It's not legal to make GL calls before you have an OpenGL context. On
> > Linux and Windows they'll silently fail, on the Mac you'll crash.
> >
> > In GLUT's case, that means that you must call glutCreateWindow or
> > glutEnterGameMode before making any GL calls.
> >
Perfectly OK and strictly obeyed.
Additional info (in case some of you guys have that one around too) :
I am operating from OpenMCL - a freely available Common Lisp
implementation for the Mac.
My questions:
1. Any hints, thoughts, ideas?
2. Anyone interested in my instrumented GLUT version?
THX!
Frank
Attachment:
signature.asc Description: This is a digitally signed message part
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden
This email sent to email@hidden