[osg-users] Setting a monochrome 2d texture from byte array

Robert Osfield robert.osfield at gmail.com
Tue Nov 5 04:46:23 PST 2019


Hi Steve,

Using a monochrome texture should be as simple as using GL_ALPHA or GL_RED
as the pixel format.  The OpenSceneGraph/src/osgText/DefaultFont.cpp
provides an example of a setting up a monochrome image.

Robert.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20191105/943cf061/attachment.html>


More information about the osg-users mailing list