¡@

Home 

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

iphone Programming Glossary: gl_src_alpha

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

void glkView GLKView view drawInRect 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.. 0 void glkView GLKView view drawInRect 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.. void glkView GLKView view drawInRect 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..

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

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 inputTextureCoordinate..

Applying brightness and contrast with OpenGL ES

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

GL_SRC0_RGB GL_PREVIOUS glTexEnvi GL_TEXTURE_ENV GL_SRC1_RGB GL_PRIMARY_COLOR glTexEnvi GL_TEXTURE_ENV GL_OPERAND1_RGB GL_SRC_ALPHA glTexEnvi GL_TEXTURE_ENV GL_RGB_SCALE 2 glTexEnvi GL_TEXTURE_ENV GL_COMBINE_ALPHA GL_REPLACE glTexEnvi GL_TEXTURE_ENV GL_SRC0_ALPHA..

OpenGL ES iPhone - drawing anti aliased lines

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

ES iPhone 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..

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_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 .s quad i .s 1.5 offw tmpquad.. 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 GL_TEXTURE_MIN_FILTER GL_NEAREST glTexParameteri GL_TEXTURE_2D..

Can example “GLImageProcessing” work with multi filters

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

GL_SRC0_RGB GL_PREVIOUS glTexEnvi GL_TEXTURE_ENV GL_SRC1_RGB GL_PRIMARY_COLOR glTexEnvi GL_TEXTURE_ENV GL_OPERAND1_RGB GL_SRC_ALPHA glTexEnvi GL_TEXTURE_ENV GL_RGB_SCALE 2 glTexEnvi GL_TEXTURE_ENV GL_COMBINE_ALPHA GL_REPLACE glTexEnvi GL_TEXTURE_ENV GL_SRC0_ALPHA..

Overlay Color Blend in OpenGL ES / iOS / Cocos2d

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

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 texture environment or shader...