PJani
06-01-2009 23:11:46
Im using CodeBlocks + GCC Win32
Im having problems compiling Hydrax i get these errors and couple of warrnings
C:\Documents and Settings\PJani\Desktop\project57_prj\Hydrax\src\Hydrax\Noise\Perlin\Perlin.cpp|143|error: invalid initialization of non-const reference of type 'Ogre::TexturePtr&' from a temporary of type 'Ogre::TexturePtr'|
C:\Documents and Settings\PJani\Desktop\project57_prj\Hydrax\src\Hydrax\Noise\Perlin\Perlin.cpp|152|error: invalid initialization of non-const reference of type 'Ogre::TexturePtr&' from a temporary of type 'Ogre::TexturePtr'|
Part of the code with errors meybe there is more
Im having problems compiling Hydrax i get these errors and couple of warrnings
C:\Documents and Settings\PJani\Desktop\project57_prj\Hydrax\src\Hydrax\Noise\Perlin\Perlin.cpp|143|error: invalid initialization of non-const reference of type 'Ogre::TexturePtr&' from a temporary of type 'Ogre::TexturePtr'|
C:\Documents and Settings\PJani\Desktop\project57_prj\Hydrax\src\Hydrax\Noise\Perlin\Perlin.cpp|152|error: invalid initialization of non-const reference of type 'Ogre::TexturePtr&' from a temporary of type 'Ogre::TexturePtr'|
Part of the code with errors meybe there is more
// Create our perlin textures
Ogre::TexturePtr& mPerlinTexture0
= Ogre::TextureManager::getSingleton().
createManual("_Hydrax_Perlin_Noise0",
HYDRAX_RESOURCE_GROUP,
Ogre::TEX_TYPE_2D,
np_size, np_size, 0,
Ogre::PF_L16,
Ogre::TU_DYNAMIC_WRITE_ONLY);
Ogre::TexturePtr& mPerlinTexture1
= Ogre::TextureManager::getSingleton().
createManual("_Hydrax_Perlin_Noise1",
HYDRAX_RESOURCE_GROUP,
Ogre::TEX_TYPE_2D,
np_size, np_size, 0,
Ogre::PF_L16,
Ogre::TU_DYNAMIC_WRITE_ONLY);
mGPUNormalMapManager->addTexture(mPerlinTexture0);
mGPUNormalMapManager->addTexture(mPerlinTexture1);