¡@

Home 

2014/10/15 ¤U¤È 10:15:41

iphone Programming Glossary: v2ft2f

Applying brightness and contrast with OpenGL ES

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

Here's the code for contrast in the sample from apple glActiveTexture GL_TEXTURE0 glVertexPointer 2 GL_FLOAT sizeof V2fT2f quad 0 .x glTexCoordPointer 2 GL_FLOAT sizeof V2fT2f quad 0 .s glTexEnvi GL_TEXTURE_ENV GL_TEXTURE_ENV_MODE GL_COMBINE glTexEnvi.. glActiveTexture GL_TEXTURE0 glVertexPointer 2 GL_FLOAT sizeof V2fT2f quad 0 .x glTexCoordPointer 2 GL_FLOAT sizeof V2fT2f quad 0 .s glTexEnvi GL_TEXTURE_ENV GL_TEXTURE_ENV_MODE GL_COMBINE glTexEnvi GL_TEXTURE_ENV GL_COMBINE_RGB GL_MODULATE glTexEnvi..

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

GLImageProcessing iPhone sample. It does 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.. does 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.. X rotated samples filter across texel corners . .. . Pass one center nearest sample glVertexPointer 2 GL_FLOAT sizeof V2fT2f quad 0 .x glTexCoordPointer 2 GL_FLOAT sizeof V2fT2f quad 0 .s glTexEnvi GL_TEXTURE_ENV GL_TEXTURE_ENV_MODE GL_MODULATE..

Can example “GLImageProcessing” work with multi filters

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

GL_COLOR_BUFFER_BIT glDisable GL_BLEND process 1 adjust brightness float t 1.2 glVertexPointer 2 GL_FLOAT sizeof V2fT2f flipquad 0 .x glTexCoordPointer 2 GL_FLOAT sizeof V2fT2f flipquad 0 .s glTexEnvi GL_TEXTURE_ENV GL_TEXTURE_ENV_MODE GL_COMBINE.. brightness float t 1.2 glVertexPointer 2 GL_FLOAT sizeof V2fT2f flipquad 0 .x glTexCoordPointer 2 GL_FLOAT sizeof V2fT2f flipquad 0 .s glTexEnvi GL_TEXTURE_ENV GL_TEXTURE_ENV_MODE GL_COMBINE static GLfloat constColor 4 0.1 0.2 0.3 0.4 if t 1.0f.. addition done in signed space. glActiveTexture GL_TEXTURE1 glEnable GL_TEXTURE_2D glVertexPointer 2 GL_FLOAT sizeof V2fT2f flipquad 0 .x glTexCoordPointer 2 GL_FLOAT sizeof V2fT2f flipquad 0 .s glTexEnvi GL_TEXTURE_ENV GL_TEXTURE_ENV_MODE GL_COMBINE..

GLImageProcessing Multiple Filters?

http://stackoverflow.com/questions/6425861/glimageprocessing-multiple-filters

int wide int high float val int mode GLuint ResultFBO GLuint ResultTexture static int prevmode 1 typedef void procfunc V2fT2f float typedef struct procfunc func procfunc degen Filter const Filter filter brightness contrast extrapolate greyscale..