¡@

Home 

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

iphone Programming Glossary: gl_blend

How to draw a line inside the fish movement (OpenGLES in iPhone)?

http://stackoverflow.com/questions/10499077/how-to-draw-a-line-inside-the-fish-movement-opengles-in-iphone

CGRect rect glClearColor 1 1 1 1 glClear GL_COLOR_BUFFER_BIT glBlendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA glEnable GL_BLEND Condition satisfied to draw a line code given below otherwise the background and fish image draw in else part. if Test1.. CGRect rect glClearColor 1 1 1 1 glClear GL_COLOR_BUFFER_BIT glBlendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA glEnable GL_BLEND Condition satisfied to draw a line code given below otherwise the background and fish image draw in else part. if Test1.. CGRect rect glClearColor 1 1 1 1 glClear GL_COLOR_BUFFER_BIT glBlendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA glEnable GL_BLEND Condition satisfied to draw a line code given below otherwise the background and fish image draw in else part. if Test1..

How do I blend two textures with different co-ordinates in OpenGL ES 2.0 on iPhone?

http://stackoverflow.com/questions/12242443/how-do-i-blend-two-textures-with-different-co-ordinates-in-opengl-es-2-0-on-ipho

textureBot glUniform1i inputTextureTop 2 glUniform1i inputTextureBot 3 glUniform1f alphaTop alpha glEnable GL_BLEND glBlendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA glVertexAttribPointer position 2 GL_FLOAT 0 0 imageVertices glVertexAttribPointer..

OpenGL ES iPhone - drawing anti aliased lines

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

drawing anti aliased lines Normally you'd use something like glBlendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA glEnable GL_BLEND glEnable GL_LINE_SMOOTH glLineWidth 2.0f glVertexPointer 2 GL_FLOAT 0 points glEnableClientState GL_VERTEX_ARRAY glDrawArrays..

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

GL_TEXTURE_2D GL_TEXTURE_MIN_FILTER GL_LINEAR glTexParameteri GL_TEXTURE_2D GL_TEXTURE_MAG_FILTER GL_LINEAR glEnable GL_BLEND glBlendFunc GL_SRC_ALPHA GL_ONE for i 0 i 4 i tmpquad i .x quad i .s 1.5 offw tmpquad i .y quad i .t 0.5 offh tmpquad i..

Can example “GLImageProcessing” work with multi filters

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

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 2 GL_FLOAT..

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

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 x 512.0.. glTexCoord2f texture_x texture_y 1.0 glVertex2f x y 512.0 glEnd glBindTexture GL_TEXTURE_2D color_texture glEnable GL_BLEND glBlendFunc GL_DST_COLOR GL_ZERO glBegin GL_QUADS glTexCoord2f texture_x texture_y glVertex2f x y glTexCoord2f texture_x.. texture_x texture_y 1.0 glVertex2f x y 512.0 glEnd glBindTexture GL_TEXTURE_2D background_texture glEnable GL_BLEND glBlendFunc GL_ONE_MINUS_DST_COLOR GL_DST_COLOR glBegin GL_QUADS glTexCoord2f texture_x texture_y glVertex2f x y glTexCoord2f..

How can I improve the performance of my custom OpenGL ES 2.0 depth texture generation?

http://stackoverflow.com/questions/6051237/how-can-i-improve-the-performance-of-my-custom-opengl-es-2-0-depth-texture-gener

but I can't figure out why. In order to achieve the proper generation of this depth texture GL_DEPTH_TEST is disabled GL_BLEND is enabled with glBlendFunc GL_ONE GL_ONE and glBlendEquation is set to GL_MIN_EXT . I know that a scene output in this..

Overlay Color Blend in OpenGL ES / iOS / Cocos2d

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

this is done using either glEnable GL_ALPHA_TEST glAlphaFunc GL_GEQUAL 0.995 not using 1.0 for some margin or glEnable GL_BLEND glBlendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA The effects are not created by setting the blend function or mode but by..

Record the drawing as a m4v video file - OpenGL

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

glMatrixMode GL_MODELVIEW glDisable GL_DITHER glEnable GL_TEXTURE_2D glEnableClientState GL_VERTEX_ARRAY glEnable GL_BLEND Set a blending function appropriate for premultiplied alpha pixel data glBlendFunc GL_ONE GL_ONE_MINUS_SRC_ALPHA glEnable..