Made sure all Thermite stuff is in the Thermite namespace.
This commit is contained in:
parent
bf26f9c89a
commit
a91ff9a10f
@ -30,6 +30,13 @@ namespace PolyVox
|
||||
//Read data
|
||||
for(uint16_t z = 0; z < volumeDepth; ++z)
|
||||
{
|
||||
//Update progress once per slice.
|
||||
if(pCallback)
|
||||
{
|
||||
float fProgress = static_cast<float>(z) / static_cast<float>(volumeDepth);
|
||||
pCallback(fProgress);
|
||||
}
|
||||
|
||||
for(uint16_t y = 0; y < volumeHeight; ++y)
|
||||
{
|
||||
for(uint16_t x = 0; x < volumeWidth; ++x)
|
||||
@ -42,6 +49,12 @@ namespace PolyVox
|
||||
}
|
||||
}
|
||||
|
||||
//Finished
|
||||
if(pCallback)
|
||||
{
|
||||
pCallback(1.0f);
|
||||
}
|
||||
|
||||
return volume;
|
||||
}
|
||||
|
||||
@ -64,6 +77,13 @@ namespace PolyVox
|
||||
VolumeSampler<uint8_t> volIter(&volume);
|
||||
for(uint16_t z = 0; z < volumeDepth; ++z)
|
||||
{
|
||||
//Update progress once per slice.
|
||||
if(pCallback)
|
||||
{
|
||||
float fProgress = static_cast<float>(z) / static_cast<float>(volumeDepth);
|
||||
pCallback(fProgress);
|
||||
}
|
||||
|
||||
for(uint16_t y = 0; y < volumeHeight; ++y)
|
||||
{
|
||||
for(uint16_t x = 0; x < volumeWidth; ++x)
|
||||
@ -74,6 +94,12 @@ namespace PolyVox
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//Finished
|
||||
if(pCallback)
|
||||
{
|
||||
pCallback(1.0f);
|
||||
}
|
||||
}
|
||||
|
||||
//Note: we don't do much error handling in here - exceptions will simply be propergated up to the caller.
|
||||
@ -136,6 +162,7 @@ namespace PolyVox
|
||||
{
|
||||
pCallback(1.0f);
|
||||
}
|
||||
|
||||
return volume;
|
||||
}
|
||||
|
||||
@ -161,6 +188,13 @@ namespace PolyVox
|
||||
bool firstTime = true;
|
||||
for(uint16_t z = 0; z < volumeDepth; ++z)
|
||||
{
|
||||
//Update progress once per slice.
|
||||
if(pCallback)
|
||||
{
|
||||
float fProgress = static_cast<float>(z) / static_cast<float>(volumeDepth);
|
||||
pCallback(fProgress);
|
||||
}
|
||||
|
||||
for(uint16_t y = 0; y < volumeHeight; ++y)
|
||||
{
|
||||
for(uint16_t x = 0; x < volumeWidth; ++x)
|
||||
@ -192,5 +226,11 @@ namespace PolyVox
|
||||
}
|
||||
stream.write(reinterpret_cast<char*>(¤t), sizeof(current));
|
||||
stream.write(reinterpret_cast<char*>(&runLength), sizeof(runLength));
|
||||
|
||||
//Finished
|
||||
if(pCallback)
|
||||
{
|
||||
pCallback(1.0f);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user