Removed more Ogre stuff from core library...
This commit is contained in:
@ -17,8 +17,6 @@ along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
******************************************************************************/
|
||||
|
||||
#include "OgreVector3.h"
|
||||
|
||||
#include "Block.h"
|
||||
|
||||
using namespace boost;
|
||||
|
@ -96,7 +96,7 @@ namespace Ogre
|
||||
}
|
||||
}
|
||||
|
||||
void PolyVoxSceneManager::createSphereAt(Vector3DFloat centre, Real radius, uint8_t value, bool painting)
|
||||
void PolyVoxSceneManager::createSphereAt(Vector3DFloat centre, float radius, uint8_t value, bool painting)
|
||||
{
|
||||
int firstX = static_cast<int>(std::floor(centre.x() - radius));
|
||||
int firstY = static_cast<int>(std::floor(centre.y() - radius));
|
||||
@ -106,7 +106,7 @@ namespace Ogre
|
||||
int lastY = static_cast<int>(std::ceil(centre.y() + radius));
|
||||
int lastZ = static_cast<int>(std::ceil(centre.z() + radius));
|
||||
|
||||
Real radiusSquared = radius * radius;
|
||||
float radiusSquared = radius * radius;
|
||||
|
||||
//Check bounds
|
||||
firstX = std::max(firstX,0);
|
||||
|
@ -2,6 +2,8 @@
|
||||
#include "SurfaceTriangle.h"
|
||||
#include "SurfaceVertex.h"
|
||||
|
||||
#include <sstream>
|
||||
|
||||
namespace Ogre
|
||||
{
|
||||
SurfaceEdge::SurfaceEdge(const SurfaceVertexIterator& targetToSet,const SurfaceVertexIterator& sourceToSet)
|
||||
@ -10,10 +12,10 @@ namespace Ogre
|
||||
source = sourceToSet;
|
||||
}
|
||||
|
||||
std::string SurfaceEdge::toString(void)
|
||||
std::string SurfaceEdge::tostring(void)
|
||||
{
|
||||
std::stringstream ss;
|
||||
ss << "SurfaceEdge: Target Vertex = " << target->toString() << "Source Vertex = " << source->toString();
|
||||
ss << "SurfaceEdge: Target Vertex = " << target->tostring() << "Source Vertex = " << source->tostring();
|
||||
return ss.str();
|
||||
}
|
||||
|
||||
|
@ -18,7 +18,7 @@ namespace Ogre
|
||||
edge = edgeToSet;
|
||||
}
|
||||
|
||||
/*std::string SurfaceTriangle::toString(void)
|
||||
/*std::string SurfaceTriangle::tostring(void)
|
||||
{
|
||||
std::stringstream ss;
|
||||
|
||||
@ -27,10 +27,10 @@ namespace Ogre
|
||||
ss << "SurfaceTriangle:";
|
||||
do
|
||||
{
|
||||
ss << "\n Edge " << ct << " = " << edgeIter->toString();
|
||||
ss << "\n Edge " << ct << " = " << edgeIter->tostring();
|
||||
if(edgeIter->hasOtherHalfEdge)
|
||||
{
|
||||
ss << "\n Opp Edge " << ct << " = " << edgeIter->otherHalfEdge->toString();
|
||||
ss << "\n Opp Edge " << ct << " = " << edgeIter->otherHalfEdge->tostring();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1,10 +1,10 @@
|
||||
#include <sstream>
|
||||
|
||||
#include "Constants.h"
|
||||
#include "SurfaceVertex.h"
|
||||
#include "SurfaceTriangle.h"
|
||||
#include "SurfaceEdge.h"
|
||||
|
||||
#include "OgreStringConverter.h"
|
||||
|
||||
namespace Ogre
|
||||
{
|
||||
SurfaceVertex::SurfaceVertex()
|
||||
@ -73,7 +73,7 @@ namespace Ogre
|
||||
normal.normalise();
|
||||
}
|
||||
|
||||
std::string SurfaceVertex::toString(void) const
|
||||
std::string SurfaceVertex::tostring(void) const
|
||||
{
|
||||
std::stringstream ss;
|
||||
ss << "SurfaceVertex: Position = (" << position.x << "," << position.y << "," << position.z << "), Normal = " << normal;
|
||||
|
@ -21,9 +21,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
#include "Volume.h"
|
||||
#include "VolumeIterator.h"
|
||||
|
||||
#include "OgreVector3.h"
|
||||
|
||||
#include <fstream>
|
||||
#include <iostream> //FIXME - remove this...
|
||||
#include <queue>
|
||||
|
||||
using namespace boost;
|
||||
|
||||
@ -326,7 +326,7 @@ namespace Ogre
|
||||
{
|
||||
if(mBlocks[ct]->isHomogeneous())
|
||||
{
|
||||
//LogManager::getSingleton().logMessage("Got homogeneous block with value " + StringConverter::toString(mBlocks[ct]->getVoxelAt(0,0,0)));
|
||||
//LogManager::getSingleton().logMessage("Got homogeneous block with value " + stringConverter::tostring(mBlocks[ct]->getVoxelAt(0,0,0)));
|
||||
|
||||
const uint8_t homogeneousValue = mBlocks[ct]->getVoxelAt(0,0,0);
|
||||
SharedPtr<Block>& homogeneousBlock = mHomogeneousBlocks[homogeneousValue];
|
||||
|
Reference in New Issue
Block a user