¡@

Home 

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

iphone Programming Glossary: gldisable

Applying brightness and contrast with OpenGL ES

http://stackoverflow.com/questions/1506299/applying-brightness-and-contrast-with-opengl-es

glColor4f h h h 0.75 0.5 h 2x extrapolation validateTexEnv glDrawArrays GL_TRIANGLE_STRIP 0 4 Restore state glDisable GL_TEXTURE_2D glTexEnvi GL_TEXTURE_ENV GL_OPERAND1_RGB GL_SRC_COLOR glTexEnvi GL_TEXTURE_ENV GL_RGB_SCALE 1 glActiveTexture..

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.. 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 the glTexCoordPointer coordinates..

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.. glDisableClientState GL_TEXTURE_COORD_ARRAY glClientActiveTexture GL_TEXTURE0 glBindTexture GL_TEXTURE_2D Half.texID glDisable GL_TEXTURE_2D glTexEnvi GL_TEXTURE_ENV GL_OPERAND2_RGB GL_SRC_ALPHA glActiveTexture GL_TEXTURE0 glTexParameteri GL_TEXTURE_2D..

OpenGL ES; rendering texture created from CGBitmapContext

http://stackoverflow.com/questions/2713890/opengl-es-rendering-texture-created-from-cgbitmapcontext

1.0f glVertexPointer 3 GL_FLOAT 0 verts glTexCoordPointer 2 GL_FLOAT 0 texCords glDrawArrays GL_TRIANGLE_STRIP 0 4 glDisable GL_TEXTURE_2D The result is a white square. Not the green one as intended. Can anyone spot the error s in my code which..

Can example “GLImageProcessing” work with multi filters

http://stackoverflow.com/questions/4375479/can-example-glimageprocessing-work-with-multi-filters

GL_FRAMEBUFFER_OES resultFBO glViewport 0 0 result.wide result.s result.high result.t glClear GL_COLOR_BUFFER_BIT glDisable GL_BLEND process 1 adjust brightness float t 1.2 glVertexPointer 2 GL_FLOAT sizeof V2fT2f flipquad 0 .x glTexCoordPointer.. glTexEnvi GL_TEXTURE_ENV GL_COMBINE_ALPHA GL_REPLACE glTexEnvi GL_TEXTURE_ENV GL_SRC0_ALPHA GL_PREVIOUS glDisable GL_TEXTURE_2D glActiveTexture GL_TEXTURE2 glEnable GL_TEXTURE_2D glTexEnvi GL_TEXTURE_ENV GL_TEXTURE_ENV_MODE GL_COMBINE.. extrapolation validateTexEnv glDrawArrays GL_TRIANGLE_STRIP 0 4 save to file snapshot result test3.jpg Restore state glDisable GL_TEXTURE_2D glTexEnvi GL_TEXTURE_ENV GL_OPERAND1_RGB GL_SRC_COLOR glTexEnvi GL_TEXTURE_ENV GL_RGB_SCALE 1 glActiveTexture..

Why is this OpenGL ES code slow on iPhone?

http://stackoverflow.com/questions/450042/why-is-this-opengl-es-code-slow-on-iphone

Drawing app on iPad using OpenGL

http://stackoverflow.com/questions/4606680/drawing-app-on-ipad-using-opengl

CGPoint origin CGPoint control CGPoint destination int segments CGPoint vertices segments 2 CGPoint midPoint glDisable GL_TEXTURE_2D float x y float t 0.0 for int i 0 i segments 2 i x pow 1 t 2 origin.x 2.0 1 t t control.x t t destination.x..

How can I crop an Image with mask and combine it with another image (background) on iPhone? (OpenGL ES 1.1 is preferred)

http://stackoverflow.com/questions/5299452/how-can-i-crop-an-image-with-mask-and-combine-it-with-another-image-background

window_size 2 void renderMask float texture_x 0 texture_y 0 float x 0 y 0 glBindTexture GL_TEXTURE_2D mask_texture glDisable GL_BLEND glBegin GL_QUADS glTexCoord2f texture_x texture_y glVertex2f x y glTexCoord2f texture_x 1.0 texture_y glVertex2f.. renderTextures float texture_x 0 texture_y 0 float x 0 y 532.0 float size 128 glBindTexture GL_TEXTURE_2D mask_texture glDisable GL_BLEND glBegin GL_QUADS glTexCoord2f texture_x texture_y glVertex2f x y glTexCoord2f texture_x 1.0 texture_y glVertex2f..

Use of VAO around VBO in Open ES iPhone app Causes EXC_BAD_ACCESS When Call to glDrawElements

http://stackoverflow.com/questions/6240863/use-of-vao-around-vbo-in-open-es-iphone-app-causes-exc-bad-access-when-call-to-g

GL_DEPTH_BUFFER_BIT glViewport 0 0 backingWidth backingHeight directProgram use glBindVertexArrayOES directArrayObject glDisable GL_DEPTH_TEST glActiveTexture GL_TEXTURE0 glBindTexture GL_TEXTURE_2D videoFrameTexture Update uniform values glUniform1i.. values glUniform1i videoFrameUniform 0 glDrawArrays GL_TRIANGLE_STRIP 0 4 program use glBindVertexArrayOES arrayObject glDisable GL_TEXTURE_2D glEnable GL_DEPTH_TEST CC3GLMatrix projection CC3GLMatrix matrix float h 4.0f self.frame.size.height self.frame.size.width..

Overlay Color Blend in OpenGL ES / iOS / Cocos2d

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

logic to draw the triangle. 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.. 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.. 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..

Save OpenGL Drawn item as a Image

http://stackoverflow.com/questions/9660723/save-opengl-drawn-item-as-a-image

0 frame.size.height scale 1 1 glViewport 0 0 frame.size.width scale frame.size.height scale glMatrixMode GL_MODELVIEW glDisable GL_DITHER glEnable GL_TEXTURE_2D glEnableClientState GL_VERTEX_ARRAY glEnable GL_BLEND Set a blending function appropriate..

Record the drawing as a m4v video file - OpenGL

http://stackoverflow.com/questions/9661259/record-the-drawing-as-a-m4v-video-file-opengl

0 frame.size.height scale 1 1 glViewport 0 0 frame.size.width scale frame.size.height scale glMatrixMode GL_MODELVIEW glDisable GL_DITHER glEnable GL_TEXTURE_2D glEnableClientState GL_VERTEX_ARRAY glEnable GL_BLEND Set a blending function appropriate..