Small linux fix

This commit is contained in:
David Williams 2009-03-30 21:50:24 +00:00
parent 5acbd012cf
commit 096d335ee2

View File

@ -25,9 +25,9 @@ int main(int argc, char *argv[])
Volume<uint8_t> volData(g_uVolumeSideLength); Volume<uint8_t> volData(g_uVolumeSideLength);
//Make our volume contain a sphere in the center. //Make our volume contain a sphere in the center.
uint16_t minPos = 0; PolyVox::uint16_t minPos = 0;
uint16_t midPos = volData.getSideLength() / 2; PolyVox::uint16_t midPos = volData.getSideLength() / 2;
uint16_t maxPos = volData.getSideLength() - 1; PolyVox::uint16_t maxPos = volData.getSideLength() - 1;
createCubeInVolume(volData, Vector3DUint16(minPos, minPos, minPos), Vector3DUint16(maxPos, maxPos, maxPos), 0); createCubeInVolume(volData, Vector3DUint16(minPos, minPos, minPos), Vector3DUint16(maxPos, maxPos, maxPos), 0);
createSphereInVolume(volData, 50.0f, 5); createSphereInVolume(volData, 50.0f, 5);