History

replaced Application::resourcesPath() with PathUtils::resourcesPath()

ZappoMan committed 11 years ago

Commit bfcc78c1 parent 753dc0729 files · +194 −124Browse files

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

Unified · Split

interface/src/MetavoxelSystem.cpp+11−10
@@ -26,6 +26,7 @@ · 25 unmodified lines
2626
2727 #include <MetavoxelMessages.h>
2828 #include <MetavoxelUtil.h>
29+#include <PathUtils.h>
2930 #include <ScriptCache.h>
3031
3132 #include "Application.h"
@@ -63,9 +64,9 @@ void MetavoxelSystem::init() { · 31 unmodified lines
6364 _voxelBufferAttribute->setLODThresholdMultiplier(
6465 AttributeRegistry::getInstance()->getVoxelColorAttribute()->getLODThresholdMultiplier());
6566
66− _baseHeightfieldProgram.addShaderFromSourceFile(QGLShader::Vertex, Application::resourcesPath() +
67+ _baseHeightfieldProgram.addShaderFromSourceFile(QGLShader::Vertex, PathUtils::resourcesPath() +
6768 "shaders/metavoxel_heightfield_base.vert");
68− _baseHeightfieldProgram.addShaderFromSourceFile(QGLShader::Fragment, Application::resourcesPath() +
69+ _baseHeightfieldProgram.addShaderFromSourceFile(QGLShader::Fragment, PathUtils::resourcesPath() +
6970 "shaders/metavoxel_heightfield_base.frag");
7071 _baseHeightfieldProgram.link();
7172
@@ -78,9 +79,9 @@ void MetavoxelSystem::init() { · 6 unmodified lines
7879
7980 loadSplatProgram("heightfield", _splatHeightfieldProgram, _splatHeightfieldLocations);
8081
81− _heightfieldCursorProgram.addShaderFromSourceFile(QGLShader::Vertex, Application::resourcesPath() +
82+ _heightfieldCursorProgram.addShaderFromSourceFile(QGLShader::Vertex, PathUtils::resourcesPath() +
8283 "shaders/metavoxel_heightfield_cursor.vert");
83− _heightfieldCursorProgram.addShaderFromSourceFile(QGLShader::Fragment, Application::resourcesPath() +
84+ _heightfieldCursorProgram.addShaderFromSourceFile(QGLShader::Fragment, PathUtils::resourcesPath() +
8485 "shaders/metavoxel_cursor.frag");
8586 _heightfieldCursorProgram.link();
8687
@@ -88,17 +89,17 @@ void MetavoxelSystem::init() { · 1 unmodified line
8889 _heightfieldCursorProgram.setUniformValue("heightMap", 0);
8990 _heightfieldCursorProgram.release();
9091
91− _baseVoxelProgram.addShaderFromSourceFile(QGLShader::Vertex, Application::resourcesPath() +
92+ _baseVoxelProgram.addShaderFromSourceFile(QGLShader::Vertex, PathUtils::resourcesPath() +
9293 "shaders/metavoxel_voxel_base.vert");
93− _baseVoxelProgram.addShaderFromSourceFile(QGLShader::Fragment, Application::resourcesPath() +
94+ _baseVoxelProgram.addShaderFromSourceFile(QGLShader::Fragment, PathUtils::resourcesPath() +
9495 "shaders/metavoxel_voxel_base.frag");
9596 _baseVoxelProgram.link();
9697
9798 loadSplatProgram("voxel", _splatVoxelProgram, _splatVoxelLocations);
9899
99− _voxelCursorProgram.addShaderFromSourceFile(QGLShader::Vertex, Application::resourcesPath() +
100+ _voxelCursorProgram.addShaderFromSourceFile(QGLShader::Vertex, PathUtils::resourcesPath() +
100101 "shaders/metavoxel_voxel_cursor.vert");
101− _voxelCursorProgram.addShaderFromSourceFile(QGLShader::Fragment, Application::resourcesPath() +
102+ _voxelCursorProgram.addShaderFromSourceFile(QGLShader::Fragment, PathUtils::resourcesPath() +
102103 "shaders/metavoxel_cursor.frag");
103104 _voxelCursorProgram.link();
104105 }
@@ -836,9 +837,9 @@ void MetavoxelSystem::guideToAugmented(MetavoxelVisitor& visitor, bool render) { · 731 unmodified lines
836837 }
837838
838839 void MetavoxelSystem::loadSplatProgram(const char* type, ProgramObject& program, SplatLocations& locations) {
839− program.addShaderFromSourceFile(QGLShader::Vertex, Application::resourcesPath() +
840+ program.addShaderFromSourceFile(QGLShader::Vertex, PathUtils::resourcesPath() +
840841 "shaders/metavoxel_" + type + "_splat.vert");
841− program.addShaderFromSourceFile(QGLShader::Fragment, Application::resourcesPath() +
842+ program.addShaderFromSourceFile(QGLShader::Fragment, PathUtils::resourcesPath() +
842843 "shaders/metavoxel_" + type + "_splat.frag");
843844 program.link();
844845