Merge remote-tracking branch 'origin/feature/vertex-and-example-refactor' into develop
Conflicts: library/PolyVoxCore/include/PolyVoxCore/Mesh.h
This commit is contained in:
commit
c68a48df6b
@ -39,13 +39,13 @@ freely, subject to the following restrictions:
|
|||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
{
|
{
|
||||||
template <typename VertexType, typename IndexType>
|
template <typename _VertexType, typename _IndexType>
|
||||||
class Mesh
|
class Mesh
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
typedef VertexType VertexType;
|
typedef _VertexType VertexType;
|
||||||
typedef IndexType IndexType;
|
typedef _IndexType IndexType;
|
||||||
|
|
||||||
Mesh();
|
Mesh();
|
||||||
~Mesh();
|
~Mesh();
|
||||||
@ -77,7 +77,7 @@ namespace PolyVox
|
|||||||
Mesh< Vertex< typename MeshType::VertexType::DataType >, typename MeshType::IndexType > result;
|
Mesh< Vertex< typename MeshType::VertexType::DataType >, typename MeshType::IndexType > result;
|
||||||
result.m_vecVertices.resize(mesh.m_vecVertices.size());
|
result.m_vecVertices.resize(mesh.m_vecVertices.size());
|
||||||
|
|
||||||
for(MeshType::IndexType ct = 0; ct < mesh.m_vecVertices.size(); ct++)
|
for(typename MeshType::IndexType ct = 0; ct < mesh.m_vecVertices.size(); ct++)
|
||||||
{
|
{
|
||||||
result.m_vecVertices[ct] = decode(mesh.m_vecVertices[ct]);
|
result.m_vecVertices[ct] = decode(mesh.m_vecVertices[ct]);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user