Moved core code from Ogre namespace to PolyVox namespace.

This commit is contained in:
David Williams
2008-02-10 11:45:34 +00:00
parent a518afff41
commit 76df5e00b5
25 changed files with 341 additions and 24 deletions

View File

@ -25,7 +25,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#include "TypeDef.h"
namespace Ogre
namespace PolyVox
{
class VOXEL_SCENE_MANAGER_API Block

View File

@ -3,7 +3,7 @@
#include "boost/cstdint.hpp"
namespace Ogre
namespace PolyVox
{
//FIXME - i think we can define mod using a bitmask which flattens the upper bits. Should define that here.
const boost::uint32_t OGRE_BLOCK_SIDE_LENGTH_POWER = 5;

View File

@ -16,7 +16,7 @@
#include "VolumeIterator.h"
namespace Ogre
namespace PolyVox
{
class VOXEL_SCENE_MANAGER_API IndexedSurfacePatch
{

View File

@ -21,9 +21,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#include "boost/cstdint.hpp"
#include "Vector.hpp"
#include "Vector.h"
namespace Ogre
namespace PolyVox
{
template <typename Type> class IntegralVector3
{

View File

@ -0,0 +1,10 @@
#ifndef MARCHING_CUBES_TABLES_HEADER_INCLUDED
#define MARCHING_CUBES_TABLES_HEADER_INCLUDED
namespace PolyVox
{
extern int edgeTable[256];
extern int triTable[256][16];
}
#endif

View File

@ -32,11 +32,11 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#include "SurfaceVertex.h"
#include "RegionGeometry.h"
#include "Vector.hpp"
#include "Vector.h"
#include <set>
namespace Ogre
namespace PolyVox
{
enum NormalGenerationMethod
{

View File

@ -23,7 +23,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#include "IndexedSurfacePatch.h"
#include "IntegralVector3.h"
namespace Ogre
namespace PolyVox
{
class RegionGeometry
{

View File

@ -22,7 +22,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#include "SurfaceTypes.h"
namespace Ogre
namespace PolyVox
{
class SurfaceEdge
{

View File

@ -22,7 +22,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#include "SurfaceTypes.h"
namespace Ogre
namespace PolyVox
{
class SurfaceTriangle
{

View File

@ -3,7 +3,7 @@
#include <set>
namespace Ogre
namespace PolyVox
{
class SurfaceVertex;
typedef std::set<SurfaceVertex>::iterator SurfaceVertexIterator;

View File

@ -25,7 +25,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#include "IntegralVector3.h"
#include "SurfaceTypes.h"
namespace Ogre
namespace PolyVox
{
class VOXEL_SCENE_MANAGER_API SurfaceVertex
{

View File

@ -6,7 +6,7 @@
//#include "..\Base\Typedef.hpp"
#include "boost/cstdint.hpp"
namespace Ogre
namespace PolyVox
{
//template <boost::uint32_t Size, typename Type> class Matrix; //Forward declaration

View File

@ -2,7 +2,7 @@
#include <cmath>
#include <string>
namespace Ogre
namespace PolyVox
{
/**
This Vector class is templated on both size and data type. It is designed to be

View File

@ -27,7 +27,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#include "TypeDef.h"
#include "IntegralVector3.h"
namespace Ogre
namespace PolyVox
{
class VOXEL_SCENE_MANAGER_API Volume
{

View File

@ -23,7 +23,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#include "TypeDef.h"
namespace Ogre
namespace PolyVox
{
class Volume;