Hi,

I tried google and surfing the source-code, but I can't get a hello world 
printed, when using the SimpleTextForeground. Here is my code:

  _pwin = OSG::PassiveWindow::create();
  _osd = SimpleTextForeground::createEmpty();

  _osd->setSize(25.0);
  _osd->setColor(Color4f(0.5, 0.5, 0.5, 0.5));
  _osd->setFamily("Helvetica");
  _osd->setHorizontalAlign(2);
  _osd->setVerticalAlign(0);

  _osd->addLine("hello world");
  _pwin->getPort(0)->editMFForegrounds()->push_back(_fileGrabber);
 
The source compiles and runs, but there is no text visible. I also tried it 
with the SimpleSceneManager, using the provided addForeground function, which 
also didn't work.

Cheers,
Keyan

On 14 Aug 2012, at 15:55, Carsten Neumann wrote:

>       Hello Keyan,
> 
> On 08/14/2012 02:09 AM, Keyan wrote:
>> sorry for the late reply. I am currently running the latest git-version of 
>> opensg 2.0, and I can't find the SimpleTextForeground in the source tree.
> 
> it came with this commit:
> commit d04c518833c02c49be6a46139b016a2f82fb8eca
> Author: gerrit <[email protected]>
> Date:   Wed Nov 9 15:33:29 2011 +0800
> 
>     merged David Kabalas opensg toolbox elements
> 
> and is in Source/System/Window/Foreground/
> If it is not in your tree, what is the output of git remote -v?
> 
>       Cheers,
>               Carsten
> 
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. Discussions 
> will include endpoint security, mobile security and the latest in malware 
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Opensg-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensg-users


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to