¡@

Home 

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

iphone Programming Glossary: gl_combine_rgb

Applying brightness and contrast with OpenGL ES

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

works great glTexEnvi GL_TEXTURE_ENV GL_TEXTURE_ENV_MODE GL_COMBINE if brightness 1.0f glTexEnvi GL_TEXTURE_ENV GL_COMBINE_RGB GL_ADD glColor4f brightness 1 brightness 1 brightness 1 brightness 1 else glTexEnvi GL_TEXTURE_ENV GL_COMBINE_RGB GL_SUBTRACT.. GL_COMBINE_RGB GL_ADD glColor4f brightness 1 brightness 1 brightness 1 brightness 1 else glTexEnvi GL_TEXTURE_ENV GL_COMBINE_RGB GL_SUBTRACT glColor4f 1 brightness 1 brightness 1 brightness 1 brightness glTexEnvi GL_TEXTURE_ENV GL_SRC0_RGB GL_TEXTURE.. 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 GL_TEXTURE_ENV GL_SRC0_RGB GL_TEXTURE glTexEnvi GL_TEXTURE_ENV GL_SRC1_RGB GL_PRIMARY_COLOR glTexEnvi..

What is DOT3 lighting?

http://stackoverflow.com/questions/1894351/what-is-dot3-lighting

the iPhone is with so called register combiners. The name DOT3 comes from this render state glTexEnvi GL_TEXTURE_ENV GL_COMBINE_RGB GL_DOT3_RGB Look at this blog entry on Wolfgang Engels blog for more info on exactly how to set this up. When doing per..

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

glBindTexture GL_TEXTURE_2D tex glTexEnvi GL_TEXTURE_ENV GL_TEXTURE_ENV_MODE GL_COMBINE glTexEnvi GL_TEXTURE_ENV GL_COMBINE_RGB GL_INTERPOLATE glTexEnvi GL_TEXTURE_ENV GL_SRC0_RGB GL_TEXTURE glTexEnvi GL_TEXTURE_ENV GL_SRC1_RGB GL_PREVIOUS glTexEnvi..

OpenGL ES 1.1: How to change texture color without losing luminance?

http://stackoverflow.com/questions/4361023/opengl-es-1-1-how-to-change-texture-color-without-losing-luminance

Should you want to preserve the alpha value of the texture you'll need to use GL_COMBINE instead of GL_ADD set GL_COMBINE_RGB and GL_COMBINE_ALPHA properly . Here are some results using this technique on your texture. share improve this answer..

Can example “GLImageProcessing” work with multi filters

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

GL_TEXTURE_ENV_MODE GL_COMBINE static GLfloat constColor 4 0.1 0.2 0.3 0.4 if t 1.0f glTexEnvi GL_TEXTURE_ENV GL_COMBINE_RGB GL_ADD glColor4f t 1 t 1 t 1 t 1 constColor 0 t 1 constColor 1 t 1 constColor 2 t 1 constColor 3 t 1 else glTexEnvi GL_TEXTURE_ENV.. t 1 t 1 t 1 t 1 constColor 0 t 1 constColor 1 t 1 constColor 2 t 1 constColor 3 t 1 else glTexEnvi GL_TEXTURE_ENV GL_COMBINE_RGB GL_SUBTRACT constColor 0 1 t constColor 1 1 t constColor 2 1 t constColor 3 1 t glTexEnvfv GL_TEXTURE_ENV GL_TEXTURE_ENV_COLOR.. GL_FLOAT sizeof V2fT2f flipquad 0 .s glTexEnvi GL_TEXTURE_ENV GL_TEXTURE_ENV_MODE GL_COMBINE glTexEnvi GL_TEXTURE_ENV GL_COMBINE_RGB GL_MODULATE glTexEnvi GL_TEXTURE_ENV GL_SRC0_RGB GL_PREVIOUS glTexEnvi GL_TEXTURE_ENV GL_SRC1_RGB GL_PRIMARY_COLOR glTexEnvi..