Hi,
the top of my programm is called "Plugin".
Till now I got to add a quadrangle:
Code:
//header:
std::list<Quadrangle *> m_BoxList;
void addBox(Quadrangle *box,bool setdefaultpos);
//cpp:
void Plugin::addBox(Quadrangle *box,bool setdefaultpos)
{
m_BoxList.push_back(box);
if(setdefaultpos) setBoxPosition(box);
}
In the header of the Quadrangle use the osgWidget::Box
Code:
class Quadrangle : public osgWidget::Box
{
public:
Quadrangle (std::string name, osgWidget::Box::BoxType, osg::Vec4 color);
}
everything is working fine till now.
But now I wanna add on the same way a cube and i get this disgusting error
C2065: 'Cube': undeclared identifier.
I tried it on so many ways now I hope one of you can tell me my fould.
Code:
//header:
std::list<Cube*> m_CubeList;
void addBox(Cube *cube);
//cpp:
void Plugin::addCube(Cube *cube)
{
m_CubeList.push_back(cube);
}
And at least the header of the Cube Construktor:
Code:
class Cube : public osg::Geode
{
public:
Cube();
}
"All data are reduced"
Thank you!
Cheers,
Lukas
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=57798#57798
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org