Original Post
How do you specify whether your function is __thiscall or __cdcel? When I try to compile this:
I get these errors:
C:\My Documents\Mason''s Files\Programming\OpenGL\Test\MD2Model.cpp(234) : error C2440: ''='' : cannot convert from ''class vector3D (__thiscall MD2Model::*)(class vector3D,class vector3D)'' to ''class vector3D (__cdecl *)(class vector3D,class vector3D)''
There is no context in which this conversion is possible
C:\My Documents\Mason''s Files\Programming\OpenGL\Test\MD2Model.cpp(236) : error C2440: ''='' : cannot convert from ''class vector3D (__thiscall MD2Model::*)(class vector3D,class vector3D)'' to ''class vector3D (__cdecl *)(class vector3D,class vector3D)''
There is no context in which this conversion is possible
This code snippet is in the member function of a class. LinearInterpol and CubicInterpol are member functions of the same class. Also, md2Vector is just a typedef''d vector3D.
... // setup type of interpolation md2Vector (* Interpolate) (md2Vector, md2Vector); if (animType == MD2_LINEAR) Interpolate = LinearInterpol; if (animType == MD2_CUBIC) Interpolate = CubicInterpol; ... |