Page 1 of 1

stufs ...

Posted: Tue Jan 31, 2006 3:24 pm
by Pr3t3nd3r

Code: Select all

	inline core::vector3df matrix4::getRotationDegrees() const
	{
		const matrix4 &mat = *this; 

		f64 Y = -asin(mat(2,0)); 
		f64 D = Y; 
D unreferenced parameter
//iscene node

Code: Select all

		virtual video::SMaterial& getMaterial(s32 i)
		{
			return *((video::SMaterial*)0);
		}
i ??? always return material 0 ? or what ?

Posted: Tue Jan 31, 2006 4:02 pm
by hybrid
Yes, the superfluous D is quite annoying when using -Wall. But for the SceneNode it is alright. It's just a generic SceneNode so what wouls you want to return? All other SceneNodes will handle this through the virtual method.

Posted: Wed Feb 01, 2006 12:02 am
by Spintz
if that method was pure virtual, then it would require every node to define the function. If your node happens to have no materials, then the default in ISceneNode is fine and you don't have to overload it.