stufs ...

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
Pr3t3nd3r
Posts: 186
Joined: Tue Feb 08, 2005 6:02 pm
Location: Romania
Contact:

stufs ...

Post 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 ?
Galactic Dream Best RTS game
http://www.rageofwar.net
Engage in epic galactic warfare, guide your people through the galaxy! in the real time strategy game made with Irrlicht
http://www.evolutionvault.com
hybrid

Post 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.
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post 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.
Image
Post Reply