iphone Programming Glossary: tmpquad
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 some blurring among other things. The relevant code includes static void blur V2fT2f quad float t t 1 GLint tex V2fT2f tmpquad 4 float offw t Input.wide float offh t Input.high int i glGetIntegerv GL_TEXTURE_BINDING_2D tex Three pass small blur using.. 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 .t quad i .t 0.5 offh.. 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 .t quad i .t 0.5 offh glTexCoordPointer 2 GL_FLOAT sizeof..
|