History

Removed redundant members, clarified class names, used better hash factors.

Andrzej Kapolka committed 11 years ago

Commit 296718e1 parent 87cc5652 files · +16 −25Browse files

Showing the changes to interface/src/MetavoxelSystem.cpp (1 of 2 files). Show all

Unified · Split

interface/src/MetavoxelSystem.cpp+4−4
@@ -215,7 +215,7 @@ void MetavoxelSystem::render() { · 214 unmodified lines
215215
216216 _baseHeightfieldProgram.bind();
217217
218− foreach (const HeightfieldBaseBatch& batch, _heightfieldBaseBatches) {
218+ foreach (const HeightfieldBaseLayerBatch& batch, _heightfieldBaseBatches) {
219219 glPushMatrix();
220220 glTranslatef(batch.translation.x, batch.translation.y, batch.translation.z);
221221 glm::vec3 axis = glm::axis(batch.rotation);
@@ -362,7 +362,7 @@ void MetavoxelSystem::render() { · 140 unmodified lines
362362
363363 _baseVoxelProgram.bind();
364364
365− foreach (const VoxelBaseBatch& batch, _voxelBaseBatches) {
365+ foreach (const VoxelBatch& batch, _voxelBaseBatches) {
366366 batch.vertexBuffer->bind();
367367 batch.indexBuffer->bind();
368368
@@ -1155,7 +1155,7 @@ void VoxelBuffer::render(bool cursor) { · 786 unmodified lines
11551155 return;
11561156 }
11571157
1158− VoxelBaseBatch baseBatch;
1158+ VoxelBatch baseBatch;
11591159 baseBatch.vertexBuffer = &_vertexBuffer;
11601160 baseBatch.indexBuffer = &_indexBuffer;
11611161 baseBatch.vertexCount = _vertexCount;
@@ -2209,7 +2209,7 @@ void HeightfieldRenderer::render(bool cursor) { · 1047 unmodified lines
22092209 return;
22102210 }
22112211
2212− HeightfieldBaseBatch baseBatch;
2212+ HeightfieldBaseLayerBatch baseBatch;
22132213 baseBatch.vertexBuffer = &bufferPair.first;
22142214 baseBatch.indexBuffer = &bufferPair.second;
22152215 baseBatch.translation = heightfield->getTranslation();