@@ -136,9 +136,9 @@ int main( int argc, char **argv )
136136
137137void initShader ()
138138{
139- std::string vertFile = std::string (PBD_DATA_PATH) + " /shaders/vs_flat.glsl" ;
140- std::string geomFile = std::string (PBD_DATA_PATH) + " /shaders/gs_flat.glsl" ;
141- std::string fragFile = std::string (PBD_DATA_PATH) + " /shaders/fs_flat.glsl" ;
139+ std::string vertFile = dataPath + " /shaders/vs_flat.glsl" ;
140+ std::string geomFile = dataPath + " /shaders/gs_flat.glsl" ;
141+ std::string fragFile = dataPath + " /shaders/fs_flat.glsl" ;
142142 shader = MiniGL::createShader (vertFile, geomFile, fragFile);
143143
144144 if (shader == NULL )
@@ -152,8 +152,8 @@ void initShader()
152152 shader->addUniform (" specular_factor" );
153153 shader->end ();
154154
155- vertFile = std::string (PBD_DATA_PATH) + " /shaders/vs_smoothTex.glsl" ;
156- fragFile = std::string (PBD_DATA_PATH) + " /shaders/fs_smoothTex.glsl" ;
155+ vertFile = dataPath + " /shaders/vs_smoothTex.glsl" ;
156+ fragFile = dataPath + " /shaders/fs_smoothTex.glsl" ;
157157 shaderTex = MiniGL::createShader (vertFile, " " , fragFile);
158158
159159 if (shaderTex == NULL )
@@ -397,7 +397,7 @@ void createRigidBodyModel()
397397 SimulationModel::RigidBodyVector &rb = model.getRigidBodies ();
398398 SimulationModel::ConstraintVector &constraints = model.getConstraints ();
399399
400- string fileName = string (PBD_DATA_PATH) + " /models/cube.obj" ;
400+ string fileName = dataPath + " /models/cube.obj" ;
401401 IndexedFaceMesh mesh;
402402 VertexData vd;
403403 OBJLoader::loadObj (fileName, vd, mesh, Eigen::Vector3f (width, height, depth));
0 commit comments