Lines Matching refs:texture
254 s_gles2.glGenTextures(1, &mFBWidth.texture);
255 s_gles2.glBindTexture(GL_TEXTURE_2D, mFBWidth.texture);
261 s_gles2.glGenTextures(1, &mFBHeight.texture);
262 s_gles2.glBindTexture(GL_TEXTURE_2D, mFBHeight.texture);
278 GLuint tex[2] = {mFBWidth.texture, mFBHeight.texture}; in ~TextureResize()
294 GLuint TextureResize::update(GLuint texture) { in update() argument
315 return texture; in update()
320 resize(texture); in update()
327 return texture; in update()
330 return mFBHeight.texture; in update()
333 GLuint TextureResize::update(GLuint texture, int width, int height, int rotation) { in update() argument
337 return mGenericResizer->draw(texture, width, height, rotation); in update()
347 s_gles2.glBindTexture(GL_TEXTURE_2D, mFBWidth.texture); in setupFramebuffers()
353 s_gles2.glBindTexture(GL_TEXTURE_2D, mFBHeight.texture); in setupFramebuffers()
371 void TextureResize::resize(GLuint texture) { in resize() argument
385 GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, mFBWidth.texture, 0); in resize()
391 s_gles2.glBindTexture(GL_TEXTURE_2D, texture); in resize()
411 GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, mFBHeight.texture, 0); in resize()
417 s_gles2.glBindTexture(GL_TEXTURE_2D, mFBWidth.texture); in resize()
527 s_gles2.glGenTextures(1, &mFrameBuffer.texture); in GenericResizer()
528 s_gles2.glBindTexture(GL_TEXTURE_2D, mFrameBuffer.texture); in GenericResizer()
542 GLuint TextureResize::GenericResizer::draw(GLuint texture, int width, int height, in draw() argument
548 s_gles2.glBindTexture(GL_TEXTURE_2D, mFrameBuffer.texture); in draw()
562 GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, mFrameBuffer.texture, 0); in draw()
583 s_gles2.glBindTexture(GL_TEXTURE_2D, texture); in draw()
615 return mFrameBuffer.texture; in draw()
620 s_gles2.glDeleteTextures(1, &mFrameBuffer.texture); in ~GenericResizer()