¡@

Home 

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

iphone Programming Glossary: glactivetexture

How do I blend two textures with different co-ordinates in OpenGL ES 2.0 on iPhone?

http://stackoverflow.com/questions/12242443/how-do-i-blend-two-textures-with-different-co-ordinates-in-opengl-es-2-0-on-ipho

void display EAGLContext setCurrentContext context glBindFramebuffer GL_FRAMEBUFFER targetFBO glUseProgram program glActiveTexture GL_TEXTURE2 glBindTexture GL_TEXTURE_2D textureTop glActiveTexture GL_TEXTURE3 glBindTexture GL_TEXTURE_2D textureBot glUniform1i.. GL_FRAMEBUFFER targetFBO glUseProgram program glActiveTexture GL_TEXTURE2 glBindTexture GL_TEXTURE_2D textureTop glActiveTexture GL_TEXTURE3 glBindTexture GL_TEXTURE_2D textureBot glUniform1i inputTextureTop 2 glUniform1i inputTextureBot 3 glUniform1f..

Applying brightness and contrast with OpenGL ES

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

better choice to move to OpenGL ES 2.0 and do this with shaders 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.. glTexEnvi GL_TEXTURE_ENV GL_COMBINE_ALPHA GL_INTERPOLATE glTexEnvi GL_TEXTURE_ENV GL_SRC0_ALPHA GL_TEXTURE glActiveTexture GL_TEXTURE1 glEnable GL_TEXTURE_2D glTexEnvi GL_TEXTURE_ENV GL_TEXTURE_ENV_MODE GL_COMBINE glTexEnvi GL_TEXTURE_ENV GL_COMBINE_RGB.. glDisable GL_TEXTURE_2D glTexEnvi GL_TEXTURE_ENV GL_OPERAND1_RGB GL_SRC_COLOR glTexEnvi GL_TEXTURE_ENV GL_RGB_SCALE 1 glActiveTexture GL_TEXTURE0 As you can probably guess my experience with OpenGL ES is pretty limited so anything that points me in the right..

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

offh glTexCoordPointer 2 GL_FLOAT sizeof V2fT2f tmpquad 0 .x glTexEnvi GL_TEXTURE_ENV GL_TEXTURE_ENV_MODE GL_REPLACE glActiveTexture GL_TEXTURE1 glEnable GL_TEXTURE_2D glClientActiveTexture GL_TEXTURE1 glTexCoordPointer 2 GL_FLOAT sizeof V2fT2f tmpquad.. glBindTexture GL_TEXTURE_2D Half.texID glDisable GL_TEXTURE_2D glTexEnvi GL_TEXTURE_ENV GL_OPERAND2_RGB GL_SRC_ALPHA glActiveTexture GL_TEXTURE0 glTexParameteri GL_TEXTURE_2D GL_TEXTURE_MIN_FILTER GL_NEAREST glTexParameteri GL_TEXTURE_2D GL_TEXTURE_MAG_FILTER..

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

this question Here is a solution that might be close to what you're looking for glColor4f 1.0f 0.0f 0.0f 1.0f glActiveTexture GL_TEXTURE0 glEnable GL_TEXTURE_2D glBindTexture GL_TEXTURE_2D spriteTexture glTexEnvi GL_TEXTURE_ENV GL_TEXTURE_ENV_MODE.. GL_TEXTURE_2D glBindTexture GL_TEXTURE_2D spriteTexture glTexEnvi GL_TEXTURE_ENV GL_TEXTURE_ENV_MODE GL_MODULATE glActiveTexture GL_TEXTURE1 glEnable GL_TEXTURE_2D glBindTexture GL_TEXTURE_2D spriteTexture glTexEnvi GL_TEXTURE_ENV GL_TEXTURE_ENV_MODE..

Can example “GLImageProcessing” work with multi filters

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

Src t Unit1 adds 0.25 0.5 t Since 0.5 t will be in 0..0.5 it can be biased up and the 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.. GL_TEXTURE_ENV GL_COMBINE_ALPHA GL_REPLACE glTexEnvi GL_TEXTURE_ENV GL_SRC0_ALPHA GL_PREVIOUS glDisable GL_TEXTURE_2D glActiveTexture GL_TEXTURE2 glEnable GL_TEXTURE_2D glTexEnvi GL_TEXTURE_ENV GL_TEXTURE_ENV_MODE GL_COMBINE glTexEnvi GL_TEXTURE_ENV GL_COMBINE_RGB.. glDisable GL_TEXTURE_2D glTexEnvi GL_TEXTURE_ENV GL_OPERAND1_RGB GL_SRC_COLOR glTexEnvi GL_TEXTURE_ENV GL_RGB_SCALE 1 glActiveTexture GL_TEXTURE0 process 3 adjust hue process 4 mask save to buffer bind system rbo glBindFramebufferOES GL_FRAMEBUFFER_OES SystemFBO..

Use of VAO around VBO in Open ES iPhone app Causes EXC_BAD_ACCESS When Call to glDrawElements

http://stackoverflow.com/questions/6240863/use-of-vao-around-vbo-in-open-es-iphone-app-causes-exc-bad-access-when-call-to-g

0 0 backingWidth backingHeight directProgram use glBindVertexArrayOES directArrayObject glDisable GL_DEPTH_TEST glActiveTexture GL_TEXTURE0 glBindTexture GL_TEXTURE_2D videoFrameTexture Update uniform values glUniform1i videoFrameUniform 0 glDrawArrays..

iOS CVImageBuffer distorted from AVCaptureSessionDataOutput with AVCaptureSessionPresetPhoto

http://stackoverflow.com/questions/6540710/ios-cvimagebuffer-distorted-from-avcapturesessiondataoutput-with-avcapturesessio

how I'm doing it in OpenGL ES CVImageBufferRef pixelBuffer pixelBuffer containing the raw image data is passed in ... glActiveTexture GL_TEXTURE0 glBindTexture GL_TEXTURE_2D videoFrameTexture_ int frameWidth CVPixelBufferGetWidth pixelBuffer int frameHeight..

iPhone OpenGL ES texture unit

http://stackoverflow.com/questions/8366033/iphone-opengl-es-texture-unit

share improve this question You can bind a texture to an available texture unit using code like the following glActiveTexture GL_TEXTURE0 glBindTexture GL_TEXTURE_2D texture1 glActiveTexture GL_TEXTURE1 glBindTexture GL_TEXTURE_2D texture2 This assumes.. available texture unit using code like the following glActiveTexture GL_TEXTURE0 glBindTexture GL_TEXTURE_2D texture1 glActiveTexture GL_TEXTURE1 glBindTexture GL_TEXTURE_2D texture2 This assumes you've properly configured both texture1 and texture2 of course...