Hi, thanks for merging the fixes and sorry about the wrong FIXED_FUNCTION_AVAILABLE.
I now want to submit my changes to osgText, which mainly add VBO support to osgText::Text (I did not touch Text3D). Also, for GL3/GL4 core profile GL_RED is used for glyph textures instead of GL_ALPHA (which is deprecated). I implemented this by introducing the preprocessor constants OSGTEXT_GLYPH_FORMAT and OSGTEXT_GLYPH_INTERNALFORMAT (see the Glyph header file) which are set depending on OSG_GL3_AVAILABLE and OSG_GL1_AVAILABLE / OSG_GL2_AVAILABLE. Finally, I extended the osgText example so that it works in GL3/GL4 mode by adding a shader. I tested the osgText example with VBOs and with shader (OSG_GL3_AVAILABLE checked and OSG_GL1_AVAILABLE / OSG_GL2_AVAILABLE unchecked) and without VBOs and without any shader. Cheers, Andreas ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=62472#62472 Attachments: http://forum.openscenegraph.org//files/osgtextgl3coresupport_146.zip _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
