How to modify texture data in OpenGL?

Started by
3 comments, last by savedbygamesandcodes 17 years, 10 months ago
How to modify texture data in OpenGL? I can modify texture data in Direct3D by lock it first, but I don't can I do this in OpenGL, and how to if I can?
Advertisement
You use glTexSubImage.
As far as I know, it doesn't work in the same way as DX.

I know that you can get the texture data back by downloading it from the graphics card. The thread is in the OpenGL forum.

If you're going to be editing it, you can always just keep the data around after binding to the video card with OpenGL, make any changes you want, and then just bind again it to the same texture id.
[size="2"][size=2]Mort, Duke of Sto Helit: NON TIMETIS MESSOR -- Don't Fear The Reaper
This would answer my question too.

Any tutorials or sample code on that?
_______________________"You're using a screwdriver to nail some glue to a ming vase. " -ToohrVyk
Thanks a lot!

This topic is closed to new replies.

Advertisement