Re: I'm so angry.
Re: I'm so angry.
- Subject: Re: I'm so angry.
- From: Josh Morris <email@hidden>
- Date: Sun, 30 Jun 2002 11:48:27 -0500
There are absolutely no compile errors or warnings, and I know that the
function with the gl code in the frameworks is getting called because I
put an NSLog statement in it. As far as opengl errors, I don't know.
The gl code is simply not being executed in the framework.
On 2002.06.30, at 11:31, Philip George wrote:
Are there any errors generated? If so, what are they?
On Sunday, June 30, 2002, at 11:24 AM, Josh Morris wrote:
*This message was transferred with a trial version of CommuniGate(tm)
Pro*
Sorry about the cross-posting, but it is directly applicable to both
Cocoa and OpenGL, so I decided to try all venues.
I stayed up all night making a cocoa framework for modeling 3D
objects, only to find that the gl* commands that are in the framework
don't generate any graphics. The exact same code generates a square
perfectly if not in a framework.
My code is:
glClearColor(0.0, 0.0, 0.0, 0.0);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT |
GL_STENCIL_BUFFER_BIT);
glMatrixMode(GL_MODELVIEW);
glBegin(GL_QUADS);
glColor4f(1.0, 0.0, 0.0, 1.0);
glVertex3f(-0.5, -0.5, 0.0);
glColor4f(0.0, 1.0, 0.0, 1.0);
glVertex3f(0.5, -0.5, 0.0);
glColor4f(0.0, 0.0, 1.0, 1.0);
glVertex3f(0.5, 0.5, 0.0);
glColor4f(1.0, 0.0, 1.0, 1.0);
glVertex3f(-0.5, 0.5, 0.0);
glEnd();
glRotatef(-0.3, 0.0, 0.0, 1.0);
Jacked straight from the apple initGL example...
Is there any reason why GL code wouldn't run from inside a cocoa
framework? Thanks for any help.
_______________________________________________
MacOSX-dev mailing list
email@hidden
http://www.omnigroup.com/mailman/listinfo/macosx-dev
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.