Hi, I have expanded osg::DrawPixels so that the to be displayed image can be aligned around position (similar to text). The reasons for this extension are:
- an alignment during the construction of a scene is difficult to impossible because the projection need not to be known during construction (and still then it is troublesome to get the right modelview and projection matrices); - bounding box calculation is faulty (can only be fixed similar to the implementation in the Text class, I believe); - the functionality is convenient. Of course without specifying an alignment explicitely the default alignment is LEFT_BOTTOM which is equivalent with the current behaviour. Cheers, Hartwig ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=28336#28336 Attachments: http://forum.openscenegraph.org//files/drawpixels1_123.zip _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
