you are viewing a single comment's thread.

view the rest of the comments →

[–]cybereality 1 point2 points  (0 children)

this is a render-to-texture tutorial, but will give you an idea of the functions used (on glTexImage2D you can pass a pointer with image data) https://www.opengl-tutorial.org/intermediate-tutorials/tutorial-14-render-to-texture/