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: Pixels don't appear with glDrawArrays



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

This email sent to email@hidden
References: 
 >Pixels don't appear with glDrawArrays (From: Michael Hanna <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.