[osg-users] Equivalent of glTexSubImage2D ?

Johny Canes psijsma at gmail.com
Thu Mar 2 02:57:17 PST 2017


Hi,

On the upside, I've been studying the workings of OSG and looking at the source code really helps. However, my glTexSubImage2D continues to have zero effect on its code. I'm doing this via a operator StateAttribute callback on the texture, binding it, then trying to write pixels. I've also discovered the scoped lock mutex, which is really cool.

However, the gl operation still doesn't do anything.

When I look at how Texture2D.cpp does it, it uses `glPixelStorei(GL_UNPACK_ROW_LENGTH, x);` and the like, but I've no idea how to use these...

Thank you!

Cheers,
Johny

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=70383#70383








More information about the osg-users mailing list