Hi Umit, The \n is used to make sure that the warnings you get back from the OpenGL driver map to distrinct line numbers, without this all the lines would be treated as a whole program ecoded in a single line.
Robert. On Thu, May 21, 2009 at 3:49 PM, Ümit Uzun <[email protected]> wrote: > Hi Robert; > > I have realized that when using --shader option in osg2cpp it parses shader > file in cpp but it add unneccessary endline sign(\n) every line's end. > I think every shaderSource.substr(startOfLine,endOfLine-startOfLine) command > should be > shaderSource.substr(startOfLine,endOfLine-startOfLine-1) > > Regards. > > -- > Ümit Uzun > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

