¡@

Home 

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

iphone Programming Glossary: flipquad

Can example “GLImageProcessing” work with multi filters

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

glDisable GL_BLEND process 1 adjust brightness float t 1.2 glVertexPointer 2 GL_FLOAT sizeof V2fT2f flipquad 0 .x glTexCoordPointer 2 GL_FLOAT sizeof V2fT2f flipquad 0 .s glTexEnvi GL_TEXTURE_ENV GL_TEXTURE_ENV_MODE GL_COMBINE static.. float t 1.2 glVertexPointer 2 GL_FLOAT sizeof V2fT2f flipquad 0 .x glTexCoordPointer 2 GL_FLOAT sizeof V2fT2f flipquad 0 .s glTexEnvi GL_TEXTURE_ENV GL_TEXTURE_ENV_MODE GL_COMBINE static GLfloat constColor 4 0.1 0.2 0.3 0.4 if t 1.0f glTexEnvi.. 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 V2fT2f flipquad 0 .s glTexEnvi GL_TEXTURE_ENV GL_TEXTURE_ENV_MODE GL_COMBINE glTexEnvi..

GLImageProcessing Multiple Filters?

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

FBO glBindFramebufferOES GL_FRAMEBUFFER_OES ResultFBO apply 1st filter glViewport 0 0 wide high filter mode .func flipquad val restore original frame buffer object glBindFramebufferOES GL_FRAMEBUFFER_OES SystemFBO use ResultTexture as input for.. for the 2nd filter glBindTexture GL_TEXTURE_2D ResultTexture apply 2nd filter glViewport 0 0 wide high filter 2 .func flipquad val glCheckError iphone opengl es filter share improve this question You can extend this scheme by alternating between.. stageFBO 1 glBindTexture GL_TEXTURE_2D stageTexture 0 apply 1st filter glViewport 0 0 wide high filter mode .func flipquad val glBindTexture GL_TEXTURE_2D 0 must unbind texture before FBO with that texture attached can be bound bind stage 0 sourcing..