Resizing an image using OpenGL

I would like to resize the image using OpenGL. I would prefer this in Java, but C ++ is fine too.

I'm really new to all of this, so here is the process in words, as I see it:

  • upload texture image to ogl
  • set some things regarding state and filtering
  • draw a texture of different sizes on a different texture.
  • get texture data into an array or something.

Do you think it will be faster to use OpenGL and GPU than to use processor-based BLIT library?

Thank!

+3
source share
2 answers

FBO , blit: glBlitFramebuffer. , FBO:

  • , FBO (glCheckFramebufferStatus)
  • FBO FBO (glBindFramebuffer)
  • (glDraw/ReadBuffers)
  • glBlitFramebuffer, GL_LINEAR

, GPU, .

+4

, , OpenGL. GPU, , , , .

, OpenGL, .

+1

Source: https://habr.com/ru/post/1794374/


All Articles