[osg-users] error C2065: 'Cube': undeclared identifier

2014-02-25 Thread Lukas Koebler
Hi, the top of my programm is called Plugin. Till now I got to add a quadrangle: Code: //header: std::listQuadrangle * m_BoxList; void addBox(Quadrangle *box,bool setdefaultpos); //cpp: void Plugin::addBox(Quadrangle *box,bool setdefaultpos) { m_BoxList.push_back(box);

[osg-users] new constructor

2014-02-25 Thread Lukas Koebler
Hi, I´m new in OSG and I hope you can help me. I´ve done a new constructor called 3dBox. In this constructor I wanna create a cube. Code: mp_Quader2 = new Geode(); 3dBox(*mp_Quader2); this-addChild(mp_Quader2); This is how I want it in the end. But it doesn´t work