¡@

Home 

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

iphone Programming Glossary: gl_one_minus_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

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 fish image draw in else.. 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 fish image draw in else.. 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 fish image draw in else..

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

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

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

Erase using brush in GLPaint

http://stackoverflow.com/questions/4048811/erase-using-brush-in-glpaint

by having the condition if isEraserBrushType glBlendFunc GL_ONE GL_ZERO glColor4f 0 0 0 0.0 else glBlendFunc GL_ONE GL_ONE_MINUS_SRC_ALPHA self setBrushColorWithRed brushColourRed green brushColourGreen blue brushColourBlue above the code Render the vertex array..

Why is this OpenGL ES code slow on iPhone?

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

spriteData glTexParameteri GL_TEXTURE_2D GL_TEXTURE_MIN_FILTER GL_LINEAR glEnable GL_TEXTURE_2D glBlendFunc GL_ONE GL_ONE_MINUS_SRC_ALPHA glEnable GL_BLEND void drawView .. glClear GL_COLOR_BUFFER_BIT glLoadIdentity glTranslatef tx 100 ty 100 10 for int i 0..

Undo drawing in Paint Application

http://stackoverflow.com/questions/6689600/undo-drawing-in-paint-application

viewRenderbuffer context presentRenderbuffer GL_RENDERBUFFER_OES at last restore the mixed mode glBlendFunc GL_ONE GL_ONE_MINUS_SRC_ALPHA This code is not efficient and it has so many faults..Have a look at images before and After Undo. Before http imageshack.us..

Overlay Color Blend in OpenGL ES / iOS / Cocos2d

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

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. The Overlay actually..

Save OpenGL Drawn item as a Image

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

glEnable GL_BLEND Set a blending function appropriate for premultiplied alpha pixel data glBlendFunc GL_ONE GL_ONE_MINUS_SRC_ALPHA glEnable GL_POINT_SPRITE_OES glTexEnvf GL_POINT_SPRITE_OES GL_COORD_REPLACE_OES GL_TRUE glPointSize width kBrushScale Make..

Record the drawing as a m4v video file - OpenGL

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

glEnable GL_BLEND Set a blending function appropriate for premultiplied alpha pixel data glBlendFunc GL_ONE GL_ONE_MINUS_SRC_ALPHA glEnable GL_POINT_SPRITE_OES glTexEnvf GL_POINT_SPRITE_OES GL_COORD_REPLACE_OES GL_TRUE glPointSize width kBrushScale Make..