Code: Select all
class Tile : public ISceneNode
{
public:
Tile();
Tile(ISceneNode*,ISceneManager*,s32,const core::vector3df &,const core::vector3df &,
const core::vector3df &);
private:
int x;
int y;
};
Tile::Tile(ISceneNode* parent,ISceneManager* mgr,s32 id = -1,
const core::vector3df & position = core::vector3df(0,0,0),
const core::vector3df & rotation = core::vector3df(0,0,0),
const core::vector3df & scale = core::vector3df(1.0f, 1.0f, 1.0f))
:ISceneNode(parent, mgr, id, position, rotation, scale),x(0),y(0){};
Code: Select all
Tile* n = smgr->addCubeSceneNode();
error: invalid conversion from `irr::scene::ISceneNode*' to `
Tile*'
What am I doing wrong?