¡@

Home 

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

iphone Programming Glossary: gl_one

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

OpenGL ES; rendering texture created from CGBitmapContext

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

0 xSize 0 ySize 1.0f 1.0f glMatrixMode GL_MODELVIEW glColor4f 1.0f 1.0f 1.0f 1.0f glEnable GL_TEXTURE_2D glBlendFunc GL_ONE GL_SRC_COLOR GLuint texture 1 glGenTextures 1 texture 0 glBindTexture GL_TEXTURE_2D texture 0 glTexParameteri GL_TEXTURE_2D..

Erase using brush in GLPaint

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

renderLineFromPoint 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.. 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 blue brushColourBlue above the code.. 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..

Why is this OpenGL ES code slow on iPhone?

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

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

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

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 manner isn't the fastest on a tile.. 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 manner isn't the fastest on a tile based deferred..

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

Save OpenGL Drawn item as a Image

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

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 GL_POINT_SPRITE_OES glTexEnvf GL_POINT_SPRITE_OES GL_COORD_REPLACE_OES GL_TRUE glPointSize.. 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..

Record the drawing as a m4v video file - OpenGL

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

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 GL_POINT_SPRITE_OES glTexEnvf GL_POINT_SPRITE_OES GL_COORD_REPLACE_OES GL_TRUE glPointSize.. 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..