Page 1 of 1

Integrating Newton 1.53 with Irrlicht

Posted: Sun Mar 01, 2009 5:18 pm
by Mania-92
The tutorial on the subject is outdated, it only works with newton versions before 1.53. I can't find version 1.52 and have no experience with Newton to tweak the tutorials code.

So does have anyone a clue what to change in the tutorial's code, or has someone the Newton 1.52 SDK?

Posted: Mon Mar 02, 2009 6:23 pm
by Mania-92
Tried compiling today and I get this error:
error C2259: 'CGame' : cannot instantiate abstract class
1> due to following members:
1> 'bool irr::IEventReceiver::OnEvent(const irr::SEvent &)' : is abstract
1> c:\users\ed\documents\opengl\irrlicht-1.5\include\ieventreceiver.h(351) : see declaration of 'irr::IEventReceiver::OnEvent'
Anyone who could help me on this one?

Posted: Mon Mar 02, 2009 7:14 pm
by bitplane
See the FAQ thread, the OnEvent method has changed.

Posted: Mon Mar 02, 2009 7:16 pm
by MarcinS
probably the method was override in wrong way

check if in your code of class based on IReceiver there is "const irr::SEvent &" in header (and body) of OnEvent becouse there is probably irr::SEvent* or something else

Posted: Mon Mar 02, 2009 7:37 pm
by Mania-92
Fixed it but it came up with some new errors, fixed many of them but got stuck with one:
error C2248: 'irr::core::CMatrix4<T>::M' : cannot access private member declared in class 'irr::core::CMatrix4<T>'
1> with
1> [
1> T=irr::f32
1> ]
1> ...\irrlicht-1.5\include\matrix4.h(320) : see declaration of 'irr::core::CMatrix4<T>::M'
1> with
1> [
1> T=irr::f32
1> ]

Posted: Tue Mar 03, 2009 11:50 am
by bitplane
use matrix.pointer() instead, or the other methods.