¡@

Home 

2014/10/15 ¤U¤È 10:09:38

iphone Programming Glossary: gldisableclientstate

OpenGL ES render to texture, then draw texture

http://stackoverflow.com/questions/1649222/opengl-es-render-to-texture-then-draw-texture

GL_TEXTURE_COORD_ARRAY glEnable GL_TEXTURE_2D glColor4f 1 1 1 1 texture drawInRect CGRectMake 0 0 320 480 glDisableClientState GL_TEXTURE_COORD_ARRAY glDisable GL_TEXTURE_2D self swapBuffers I can flip the image rightside up easily enough by reordering..

OpenGL ES iPhone - drawing anti aliased lines

http://stackoverflow.com/questions/1813035/opengl-es-iphone-drawing-anti-aliased-lines

2.0f glVertexPointer 2 GL_FLOAT 0 points glEnableClientState GL_VERTEX_ARRAY glDrawArrays GL_LINE_STRIP 0 num_points glDisableClientState GL_VERTEX_ARRAY It looks good in the iPhone simulator but on the iPhone the lines get extremely thin and w o any anti aliasing...

Draw to offscreen renderbuffer in OpenGL ES (iPhone)

http://stackoverflow.com/questions/1853551/draw-to-offscreen-renderbuffer-in-opengl-es-iphone

10.0f glLoadIdentity glEnableClientState GL_VERTEX_ARRAY glVertexPointer 3 GL_FLOAT 0 vc glDrawArrays GL_LINES 0 4 glDisableClientState GL_VERTEX_ARRAY glBindRenderbufferOES GL_RENDERBUFFER_OES offscreenRenderbuffer context presentRenderbuffer GL_RENDERBUFFER_OES..

How do I create blurred text in an iPhone view?

http://stackoverflow.com/questions/227305/how-do-i-create-blurred-text-in-an-iphone-view

offh tmpquad i .s quad i .s 0.5 offw tmpquad i .t quad i .t 1.5 offh glDrawArrays GL_TRIANGLE_STRIP 0 4 Restore state glDisableClientState GL_TEXTURE_COORD_ARRAY glClientActiveTexture GL_TEXTURE0 glBindTexture GL_TEXTURE_2D Half.texID glDisable GL_TEXTURE_2D..

Getting a Maya Model into the iPhone

http://stackoverflow.com/questions/4675475/getting-a-maya-model-into-the-iphone

vertices 3 glColor4f R G B 1 range 0 1 glDrawArrays GL_TRIANGLES 0 numVertices number of floats in array divided by 6 glDisableClientState GL_VERTEX_ARRAY glDisableClientState GL_NORMAL_ARRAY Then just put this in your OpenGL ES 1.1 render loop. Let me know if.. 1 glDrawArrays GL_TRIANGLES 0 numVertices number of floats in array divided by 6 glDisableClientState GL_VERTEX_ARRAY glDisableClientState GL_NORMAL_ARRAY Then just put this in your OpenGL ES 1.1 render loop. Let me know if this does it for you. EDIT2 Just clarifying..

Overlay Color Blend in OpenGL ES / iOS / Cocos2d

http://stackoverflow.com/questions/8771413/overlay-color-blend-in-opengl-es-ios-cocos2d

void drawPolygonWithPoints CGPoint poli points int points closePolygon BOOL closePolygon glDisable GL_TEXTURE_2D glDisableClientState GL_TEXTURE_COORD_ARRAY glDisableClientState GL_COLOR_ARRAY glVertexPointer 2 GL_FLOAT 0 poli if closePolygon glDrawArrays.. points int points closePolygon BOOL closePolygon glDisable GL_TEXTURE_2D glDisableClientState GL_TEXTURE_COORD_ARRAY glDisableClientState GL_COLOR_ARRAY glVertexPointer 2 GL_FLOAT 0 poli if closePolygon glDrawArrays GL_TRIANGLE_FAN 0 points else glDrawArrays..