¡@

Home 

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

iphone Programming Glossary: systemfbo

Can example “GLImageProcessing” work with multi filters

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

GL_TEXTURE0 process 3 adjust hue process 4 mask save to buffer bind system rbo glBindFramebufferOES GL_FRAMEBUFFER_OES SystemFBO glCheckError iphone opengl es share improve this question Using multitexturing it should be possible to find a solution.. for 2 filters Remember the FBO being used for the display framebuffer glGetIntegerv GL_FRAMEBUFFER_BINDING_OES GLint SystemFBO Create the texture and the FBO the will hold the result of applying the first filter glGenTextures 1 ResultTexture glBindTexture.. ResultFBO apply 1st filter ... restore original frame buffer object glBindFramebufferOES GL_FRAMEBUFFER_OES SystemFBO use ResultTexture as input for the 2nd filter glBindTexture GL_TEXTURE_2D ResultTexture apply 2nd filter ... share improve..

GLImageProcessing Multiple Filters?

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

Input.texID Remember the FBO being used for the display framebuffer glGetIntegerv GL_FRAMEBUFFER_BINDING_OES GLint SystemFBO Create the texture and the FBO the will hold the result of applying the first filter glGenTextures 1 ResultTexture glBindTexture.. wide high filter mode .func flipquad val restore original 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.. GL_TEXTURE_2D 0 must unbind texture before FBO with that texture attached can be bound and so on. finally Bind SystemFBO so the screen is the target sourcing stage 0 1 depending on if a even or odd number of filters involved glBindFramebufferOES..