mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-16 08:42:23 +00:00
more const-ness fixes
This commit is contained in:
parent
44020df65f
commit
4f24c6a7c8
@ -181,7 +181,7 @@ namespace CSVWorld
|
|||||||
}
|
}
|
||||||
|
|
||||||
void PhysicsSystem::addHeightField(Ogre::SceneManager *sceneManager,
|
void PhysicsSystem::addHeightField(Ogre::SceneManager *sceneManager,
|
||||||
float* heights, int x, int y, float yoffset, float triSize, float sqrtVerts)
|
const float* heights, int x, int y, float yoffset, float triSize, float sqrtVerts)
|
||||||
{
|
{
|
||||||
std::string name = "HeightField_"
|
std::string name = "HeightField_"
|
||||||
+ QString::number(x).toStdString() + "_" + QString::number(y).toStdString();
|
+ QString::number(x).toStdString() + "_" + QString::number(y).toStdString();
|
||||||
|
@ -63,7 +63,7 @@ namespace CSVWorld
|
|||||||
void moveSceneNodes(const std::string sceneNodeName, const Ogre::Vector3 &position);
|
void moveSceneNodes(const std::string sceneNodeName, const Ogre::Vector3 &position);
|
||||||
|
|
||||||
void addHeightField(Ogre::SceneManager *sceneManager,
|
void addHeightField(Ogre::SceneManager *sceneManager,
|
||||||
float* heights, int x, int y, float yoffset, float triSize, float sqrtVerts);
|
const float* heights, int x, int y, float yoffset, float triSize, float sqrtVerts);
|
||||||
|
|
||||||
void removeHeightField(Ogre::SceneManager *sceneManager, int x, int y);
|
void removeHeightField(Ogre::SceneManager *sceneManager, int x, int y);
|
||||||
|
|
||||||
|
@ -660,7 +660,7 @@ namespace MWWorld
|
|||||||
return MovementSolver::traceDown(ptr, mEngine, maxHeight);
|
return MovementSolver::traceDown(ptr, mEngine, maxHeight);
|
||||||
}
|
}
|
||||||
|
|
||||||
void PhysicsSystem::addHeightField (float* heights,
|
void PhysicsSystem::addHeightField (const float* heights,
|
||||||
int x, int y, float yoffset,
|
int x, int y, float yoffset,
|
||||||
float triSize, float sqrtVerts)
|
float triSize, float sqrtVerts)
|
||||||
{
|
{
|
||||||
|
@ -42,7 +42,7 @@ namespace MWWorld
|
|||||||
|
|
||||||
void addActor (const MWWorld::Ptr& ptr, const std::string& mesh);
|
void addActor (const MWWorld::Ptr& ptr, const std::string& mesh);
|
||||||
|
|
||||||
void addHeightField (float* heights,
|
void addHeightField (const float* heights,
|
||||||
int x, int y, float yoffset,
|
int x, int y, float yoffset,
|
||||||
float triSize, float sqrtVerts);
|
float triSize, float sqrtVerts);
|
||||||
|
|
||||||
|
@ -363,7 +363,7 @@ namespace Physic
|
|||||||
//delete BulletShapeManager::getSingletonPtr();
|
//delete BulletShapeManager::getSingletonPtr();
|
||||||
}
|
}
|
||||||
|
|
||||||
void PhysicEngine::addHeightField(float* heights,
|
void PhysicEngine::addHeightField(const float* heights,
|
||||||
int x, int y, float yoffset,
|
int x, int y, float yoffset,
|
||||||
float triSize, float sqrtVerts)
|
float triSize, float sqrtVerts)
|
||||||
{
|
{
|
||||||
|
@ -227,7 +227,7 @@ namespace Physic
|
|||||||
/**
|
/**
|
||||||
* Add a HeightField to the simulation
|
* Add a HeightField to the simulation
|
||||||
*/
|
*/
|
||||||
void addHeightField(float* heights,
|
void addHeightField(const float* heights,
|
||||||
int x, int y, float yoffset,
|
int x, int y, float yoffset,
|
||||||
float triSize, float sqrtVerts);
|
float triSize, float sqrtVerts);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user