Yes. I submit patches for various libs to Ogitor.nevarim wrote:what's meaning that developing of this plugin is stopped and the only way to follow is implementing ogitor?Transporter wrote:
PagedGeometry
Changed as part of Ogitor.
Patches for new SharedPtr in Ghadamon
-
- Minaton
- Posts: 933
- Joined: Mon Mar 05, 2012 11:37 am
- Location: Germany
- x 110
Re: Patches for new SharedPtr in Ghadamon
- icaro56
- Greenskin
- Posts: 105
- Joined: Sun Feb 15, 2009 2:03 am
- Location: Belo Horizonte, MG, BRA
- x 1
Re: Patches for new SharedPtr in Ghadamon
I get the patch to SkyX (Ogre 1.9) and i found a error in function perpendicular from OgreVector3
I removed the first line where was static. Because don't compile with the static in front "const"
error message:
Error 50 error LNK2001: unresolved external symbol "__declspec(dllimport) double const `public: class Ogre::Vector3 __cdecl Ogre::Vector3::perpendicular(void)const '::`2'::fSquareZero" (__imp_?fSquareZero@?1??perpendicular@Vector3@Ogre@@QEBA?AV23@XZ@4NB) D:\workspace_final\dependences\ogre\plugins\skyx\MoonManager.obj
Code: Select all
inline Vector3 perpendicular(void) const
{
// comment
//static const Real fSquareZero = (Real)(1e-06 * 1e-06);
// removed static
const Real fSquareZero = (Real)(1e-06 * 1e-06);
Vector3 perp = this->crossProduct( Vector3::UNIT_X );
// Check length
if( perp.squaredLength() < fSquareZero )
{
/* This vector is the Y axis multiplied by a scalar, so we have
to use another axis.
*/
perp = this->crossProduct( Vector3::UNIT_Y );
}
perp.normalise();
return perp;
}
I removed the first line where was static. Because don't compile with the static in front "const"
error message:
Error 50 error LNK2001: unresolved external symbol "__declspec(dllimport) double const `public: class Ogre::Vector3 __cdecl Ogre::Vector3::perpendicular(void)const '::`2'::fSquareZero" (__imp_?fSquareZero@?1??perpendicular@Vector3@Ogre@@QEBA?AV23@XZ@4NB) D:\workspace_final\dependences\ogre\plugins\skyx\MoonManager.obj
Ícaro Motta
-
- Minaton
- Posts: 933
- Joined: Mon Mar 05, 2012 11:37 am
- Location: Germany
- x 110
Re: Patches for new SharedPtr in Ghadamon
You don't need this patches anymore. Explicit casting is not longer required for the final version of Ghadamon.
- icaro56
- Greenskin
- Posts: 105
- Joined: Sun Feb 15, 2009 2:03 am
- Location: Belo Horizonte, MG, BRA
- x 1
Re: Patches for new SharedPtr in Ghadamon
I downloaded this version https://bitbucket.org/sinbad/ogre/src?at=v1-9
and this patch was necessary.
Why?
and this patch was necessary.
Why?
Ícaro Motta