iphone Programming Glossary: glbindtexture
OpenGL ES 2d rendering into image http://stackoverflow.com/questions/10455329/opengl-es-2d-rendering-into-image GL_BGRA native iOS format GL_UNSIGNED_BYTE 0 renderTexture CFRelease attrs CFRelease empty glBindTexture CVOpenGLESTextureGetTarget renderTexture CVOpenGLESTextureGetName renderTexture glTexParameterf GL_TEXTURE_2D GL_TEXTURE_WRAP_S..
Advice on speeding up OpenGL ES 1.1 on the iPhone http://stackoverflow.com/questions/1844765/advice-on-speeding-up-opengl-es-1-1-on-the-iphone My scene rendering goes something like this Repeat 35 times glPushMatrix glLoadIdentity glTranslate Repeat 7 times glBindTexture glVertexPointer glNormalPointer glTexCoordPointer glDrawArrays GL_TRIANGLES ... glPopMatrix My Vertex Normal and Texture.. So what steps should I take to speed this up What step would you try first My first thought is to eliminate all those glBindTexture calls by using a Texture Atlas. What about some more efficient matrix operations I understand the gl versions aren't too..
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 GL_TEXTURE1 glTexCoordPointer 2 GL_FLOAT sizeof V2fT2f tmpquad 0 .s glEnableClientState GL_TEXTURE_COORD_ARRAY glBindTexture GL_TEXTURE_2D tex glTexEnvi GL_TEXTURE_ENV GL_TEXTURE_ENV_MODE GL_COMBINE glTexEnvi GL_TEXTURE_ENV GL_COMBINE_RGB GL_INTERPOLATE.. GL_TRIANGLE_STRIP 0 4 Restore state glDisableClientState GL_TEXTURE_COORD_ARRAY glClientActiveTexture GL_TEXTURE0 glBindTexture GL_TEXTURE_2D Half.texID glDisable GL_TEXTURE_2D glTexEnvi GL_TEXTURE_ENV GL_OPERAND2_RGB GL_SRC_ALPHA glActiveTexture GL_TEXTURE0..
Can example “GLImageProcessing” work with multi filters http://stackoverflow.com/questions/4375479/can-example-glimageprocessing-work-with-multi-filters GL_PROJECTION glLoadIdentity glOrthof 0 wide 0 high 1 1 glMatrixMode GL_MODELVIEW glLoadIdentity glScalef wide high 1 glBindTexture GL_TEXTURE_2D Input.texID bind result fbo glBindFramebufferOES GL_FRAMEBUFFER_OES resultFBO glViewport 0 0 result.wide result.s.. Create the texture and the FBO the will hold the result of applying the first filter glGenTextures 1 ResultTexture glBindTexture GL_TEXTURE_2D ResultTexture glTexParameteri GL_TEXTURE_2D GL_TEXTURE_MAG_FILTER GL_NEAREST glTexParameteri GL_TEXTURE_2D..
GLImageProcessing Multiple Filters? http://stackoverflow.com/questions/6425861/glimageprocessing-multiple-filters GL_PROJECTION glLoadIdentity glOrthof 0 wide 0 high 1 1 glMatrixMode GL_MODELVIEW glLoadIdentity glScalef wide high 1 glBindTexture GL_TEXTURE_2D Input.texID Remember the FBO being used for the display framebuffer glGetIntegerv GL_FRAMEBUFFER_BINDING_OES.. Create the texture and the FBO the will hold the result of applying the first filter glGenTextures 1 ResultTexture glBindTexture GL_TEXTURE_2D ResultTexture glTexParameteri GL_TEXTURE_2D GL_TEXTURE_MAG_FILTER GL_NEAREST glTexParameteri GL_TEXTURE_2D.. frame buffer object glBindFramebufferOES GL_FRAMEBUFFER_OES SystemFBO use ResultTexture as input for the 2nd filter glBindTexture GL_TEXTURE_2D ResultTexture apply 2nd filter glViewport 0 0 wide high filter 2 .func flipquad val glCheckError iphone..
iOS CVImageBuffer distorted from AVCaptureSessionDataOutput with AVCaptureSessionPresetPhoto http://stackoverflow.com/questions/6540710/ios-cvimagebuffer-distorted-from-avcapturesessiondataoutput-with-avcapturesessio int bufferWidth CVPixelBufferGetWidth cameraFrame glClear GL_COLOR_BUFFER_BIT glGenTextures 1 videoFrameTexture_ glBindTexture GL_TEXTURE_2D videoFrameTexture_ glTexParameteri GL_TEXTURE_2D GL_TEXTURE_MIN_FILTER GL_LINEAR glTexParameteri GL_TEXTURE_2D.. 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 CVPixelBufferGetHeight..
Faster alternative to glReadPixels in iPhone OpenGL ES 2.0 http://stackoverflow.com/questions/9550297/faster-alternative-to-glreadpixels-in-iphone-opengl-es-2-0 int videoSize.width int videoSize.height GL_BGRA native iOS format GL_UNSIGNED_BYTE 0 renderTexture glBindTexture CVOpenGLESTextureGetTarget renderTexture CVOpenGLESTextureGetName renderTexture glTexParameterf GL_TEXTURE_2D GL_TEXTURE_WRAP_S..
Record the drawing as a m4v video file - OpenGL http://stackoverflow.com/questions/9661259/record-the-drawing-as-a-m4v-video-file-opengl brushContext Use OpenGL ES to generate a name for the texture. glGenTextures 1 brushTexture Bind the texture name. glBindTexture GL_TEXTURE_2D brushTexture Set the texture parameters to use a minifying filter and a linear filer weighted average glTexParameteri..
|