Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mac-opengl Digest, Vol 2, Issue 148




rick <email@hidden> wrote:

Apple's GLUT implementation is available at:
     http://developer.apple.com/samplecode/glut/glut.html

I had a quick look through the code for glutSolidSphere (from
glut_shapes.c) and have included some relevant bits at the end.

Thank you. That explains it. I didn't call glutInit(), as I'm implementing my own sub-class of NSOpenGLView, but that causes the function to create a new quadric object every time. They could of course have added a delete operation afterwards (in case __glutCurrentView == NULL), but they didn't think of that while fixing bug #2742838 or decided that would be an unnecessary call...


And also thanks for pointing out the source code: it's very instructive!

	Theo Vosse

_______________________________________________
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


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.