| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Thanks! That was the problem apparently. Michael
On 21-May-05, at 9:29 PM, Christopher Niederauer wrote:
It's possible, but I am not entirely familiar with the initWithFrame function, that the OpenGL context does not exist at the point that you set up the pointers. Try moving your *Pointer calls to somewhere later in the program where you know you are within the OpenGL context (or right before the draw calls just as an experiment).
Chris
On May 21, 2005, at 1:51 PM, Michael Hanna wrote:
I can't see anything wrong with the structure of my program, but the pixels don't appear with glDrawArrays(they do when I draw with glVertex4f directly from the struct). My initGL method is called from initWithFrame...
[...] glVertexPointer(4,GL_FLOAT, 4*sizeof(GLfloat), mVertex); glColorPointer(4,GL_FLOAT, 4*sizeof(GLfloat), mColor); [...]
_______________________________________________ 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
| References: | |
| >Pixels don't appear with glDrawArrays (From: Michael Hanna <email@hidden>) | |
| >Re: Pixels don't appear with glDrawArrays (From: Christopher Niederauer <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.