¡@

Home 

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

iphone Programming Glossary: gluniform1i

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

GL_TEXTURE2 glBindTexture GL_TEXTURE_2D textureTop glActiveTexture GL_TEXTURE3 glBindTexture GL_TEXTURE_2D textureBot glUniform1i inputTextureTop 2 glUniform1i inputTextureBot 3 glUniform1f alphaTop alpha glEnable GL_BLEND glBlendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA.. textureTop glActiveTexture GL_TEXTURE3 glBindTexture GL_TEXTURE_2D textureBot glUniform1i inputTextureTop 2 glUniform1i inputTextureBot 3 glUniform1f alphaTop alpha glEnable GL_BLEND glBlendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA glVertexAttribPointer..

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

GL_DEPTH_TEST glActiveTexture GL_TEXTURE0 glBindTexture GL_TEXTURE_2D videoFrameTexture Update uniform values glUniform1i videoFrameUniform 0 glDrawArrays GL_TRIANGLE_STRIP 0 4 program use glBindVertexArrayOES arrayObject glDisable GL_TEXTURE_2D..

iPhone OpenGL ES texture unit

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

the iPhone. I am trying to render yuv texture but am very confused by the concept of a texture unit. If I change the glUniform1i's second parameter with different combination the resulting image is different. My question is how is this 0 or 1 texture.. to your shaders you specify which texture unit that particular texture is bound to using code like the following glUniform1i texture1Index 0 glUniform1i texture2Index 1 where texture1Index and texture2Index are the indices of the appropriate uniforms.. which texture unit that particular texture is bound to using code like the following glUniform1i texture1Index 0 glUniform1i texture2Index 1 where texture1Index and texture2Index are the indices of the appropriate uniforms for your shader. The 0..