Search code examples
openglopengl-3

How to use glPixelTransfer, glTexEnv and glRasterPos in openGL 3.1?


glPixelTransfer, glTexEnv and glRasterPos have been deprecated in OpenGL 3.1. What is it replaced with? If not replaced, how can I get a similar effect? I would like to use these functions.


Solution

  • What is it replaced with?

    Framebuffer objects and fragment shaders.

    P.S. If you don't want to mess with shaders, you can keep using older OpenGL version, you know.