Re: [osg-users] Re osg::getGlyphQuads

2008-10-20 Thread Jeremy Moles
On Fri, 2008-10-17 at 15:53 -0400, Jeremy Moles wrote: > On Tue, 2008-10-14 at 21:25 +0800, yang zhiyuan wrote: > > Hi: > > I have solved the problem how to get one char's position inside a > > osgText::Text; > > The purpose is to move cursor when input text. > > > > Here is my cod

Re: [osg-users] Re osg::getGlyphQuads

2008-10-17 Thread Jeremy Moles
On Tue, 2008-10-14 at 21:25 +0800, yang zhiyuan wrote: > Hi: > I have solved the problem how to get one char's position inside a > osgText::Text; > The purpose is to move cursor when input text. > > Here is my code: >updateCursorPos(const std::string& string, int position) > {

[osg-users] Re osg::getGlyphQuads

2008-10-14 Thread yang zhiyuan
Hi: I have solved the problem how to get one char's position inside a osgText::Text; The purpose is to move cursor when input text. Here is my code: updateCursorPos(const std::string& string, int position) { osg::Vec3 cursor_position = m_inputText->getPosition(); //get the font