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
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)
> {
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
3 matches
Mail list logo