Fixed some warnings with patch from AndiNo.
This commit is contained in:
parent
625bd14187
commit
b5814a410c
@ -29,10 +29,10 @@ namespace PolyVox
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
template <uint32_t noOfDims, typename ElementType>
|
||||
Array<noOfDims, ElementType>::Array()
|
||||
:m_pElements(0)
|
||||
,m_pDimensions(0)
|
||||
:m_pDimensions(0)
|
||||
,m_pOffsets(0)
|
||||
,m_uNoOfElements(0)
|
||||
,m_pElements(0)
|
||||
{
|
||||
}
|
||||
|
||||
@ -44,10 +44,10 @@ namespace PolyVox
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
template <uint32_t noOfDims, typename ElementType>
|
||||
Array<noOfDims, ElementType>::Array(const uint32_t (&pDimensions)[noOfDims])
|
||||
:m_pElements(0)
|
||||
,m_pDimensions(0)
|
||||
:m_pDimensions(0)
|
||||
,m_pOffsets(0)
|
||||
,m_uNoOfElements(0)
|
||||
,m_pElements(0)
|
||||
{
|
||||
resize(pDimensions);
|
||||
}
|
||||
@ -144,7 +144,7 @@ namespace PolyVox
|
||||
m_uNoOfElements *= pDimensions[i];
|
||||
m_pDimensions[i] = pDimensions[i];
|
||||
m_pOffsets[i] = 1;
|
||||
for (int k=noOfDims-1; k>i; k--)
|
||||
for (uint32_t k=noOfDims-1; k>i; k--)
|
||||
{
|
||||
m_pOffsets[i] *= pDimensions[k];
|
||||
}
|
||||
|
@ -53,13 +53,13 @@ namespace PolyVox
|
||||
Volume<VoxelType>* m_volData;
|
||||
VolumeSampler<VoxelType> m_sampVolume;
|
||||
|
||||
//The surface patch we are currently filling.
|
||||
SurfaceMesh<PositionMaterial>* m_meshCurrent;
|
||||
|
||||
//Information about the region we are currently processing
|
||||
Region m_regSizeInVoxels;
|
||||
Region m_regSizeInCells;
|
||||
|
||||
//The surface patch we are currently filling.
|
||||
SurfaceMesh<PositionMaterial>* m_meshCurrent;
|
||||
|
||||
//Array<4, IndexAndMaterial> m_vertices;
|
||||
Array<3, IndexAndMaterial> m_previousSliceVertices;
|
||||
Array<3, IndexAndMaterial> m_currentSliceVertices;
|
||||
|
@ -169,9 +169,8 @@ namespace PolyVox
|
||||
{
|
||||
uint16_t uX = static_cast<uint16_t>(fX + 0.75f);
|
||||
uint16_t uY = static_cast<uint16_t>(fY + 0.75f);
|
||||
uint16_t uZ = static_cast<uint16_t>(fZ + 0.75f);
|
||||
|
||||
for(int ct = 0; ct < MaxQuadsSharingVertex; ct++)
|
||||
for(uint32_t ct = 0; ct < MaxQuadsSharingVertex; ct++)
|
||||
{
|
||||
IndexAndMaterial& rEntry = existingVertices[uX][uY][ct];
|
||||
|
||||
|
@ -45,10 +45,10 @@ namespace PolyVox
|
||||
|
||||
template <uint32_t noOfDims, typename ElementType>
|
||||
SubArray<noOfDims, ElementType>::SubArray(ElementType * pElements, uint32_t * pDimensions, uint32_t * pOffsets)
|
||||
:m_pElements(pElements)
|
||||
,m_pDimensions(pDimensions)
|
||||
:m_pDimensions(pDimensions)
|
||||
,m_pOffsets(pOffsets)
|
||||
,m_uNoOfElements(0)
|
||||
,m_pElements(pElements)
|
||||
{
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user