Hi Jaime,
I recommend doing some simple C++ test programs before you start trying
to use OSG. You will learn faster and better doing one thing at a time
than trying to do everything at once.
Anyways, the errors:
1>.\MainThread.cpp(106) : error C2061: syntax error : identifier 'text'
This line is wrong:
Text *textX=new text();
It should be
Text *textX=new Text();
Note the case, it's important in C++ and most programming languages.
As Martin said, your code will be clearer if you remove the "using
namespace ..." directives at the top and use explicit namespaces
everywhere. i.e. whenever you said "Geode" replace that with
"osg::Geode", "Group" becomes "osg::Group", "Text" becomes
"osgText::Text", etc.
That way you know where the classes/types come from. That helps
accentuate the fact that there's no magic going on, every type comes
from somewhere and you can trace back there if something happens that
you don't quite understand. Reading the code and headers will help make
everything clear.
1>.\MainThread.cpp(111) : error C2065: 'sxsgeode' : undeclared identifier
You have no variable called "sxsgeode". It's hard to decipher where in
your graph you meant to put the text, so I can't really suggest what
would fix it...
1>.\MainThread.cpp(111) : error C2227: left of '->addDrawable' must point to
class/struct/union/generic type
1> type is ''unknown-type''
Fixing the above will fix this.
Hope this helps,
J-S
--
______________________________________________________
Jean-Sebastien Guay [email protected]
http://www.cm-labs.com/
http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org