Started using texture atlas instead of many small meshes.
This commit is contained in:
@ -4,15 +4,16 @@
|
||||
#include <set>
|
||||
#include <list>
|
||||
|
||||
#include "AbstractSurfacePatch.h"
|
||||
#include "Constants.h"
|
||||
#include "IntegralVector3.h"
|
||||
#include "SurfaceTypes.h"
|
||||
#include "SurfaceVertex.h"
|
||||
#include "VolumeIterator.h"
|
||||
|
||||
|
||||
namespace Ogre
|
||||
{
|
||||
class IndexedSurfacePatch : public AbstractSurfacePatch
|
||||
class IndexedSurfacePatch
|
||||
{
|
||||
public:
|
||||
IndexedSurfacePatch();
|
||||
@ -21,8 +22,11 @@ namespace Ogre
|
||||
void addTriangle(const SurfaceVertex& v0,const SurfaceVertex& v1,const SurfaceVertex& v2);
|
||||
void fillVertexAndIndexData(std::vector<SurfaceVertex>& vecVertices, std::vector<ushort>& vecIndices);
|
||||
|
||||
private:
|
||||
std::vector<SurfaceVertexIterator> m_vecTriangleIndices;
|
||||
//private:
|
||||
std::vector<uint> m_vecTriangleIndices;
|
||||
std::vector<SurfaceVertex> m_vecVertices;
|
||||
|
||||
long int vertexIndices[OGRE_REGION_SIDE_LENGTH*2+1][OGRE_REGION_SIDE_LENGTH*2+1][OGRE_REGION_SIDE_LENGTH*2+1];
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user