¡@

Home 

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

iphone Programming Glossary: gl_zero

Erase using brush in GLPaint

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

CGPoint start toPoint CGPoint end method 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..

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

know and I'll update my answer. Draw the mask with blending disabled. Enable blending set the GLBlendFunc GL_DST_COLOR GL_ZERO and draw the bleed through texture. My mask is white where it should bleed through. In your question it was black. Now to.. 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 1.0 texture_y glVertex2f x 512.0..

Overlay Color Blend in OpenGL ES / iOS / Cocos2d

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

project although I think it can be applied to generic OGL ES void draw super draw glBlendColor 0 255 0 255 glBlendFunc GL_ZERO GL_SRC_COLOR glColor4ub 255 0 255 255 glLineWidth 2 CGPoint vertices2 ccp 0 100 ccp 100 100 ccp 100 0 DrawingHelper drawPolygonWithPoints..