@barelief wrote:
I was wondering what's the most convenient way to arrange files in a more bigger project with lots of classes, test apps and assets.
So far, when I create a Project folder (
apps/ProjectName/
) I create folders inside it:
Shared Data/
- this is likedata/
folder but for all different sketches, so I dont' have to copypaste themRoutines/
- Timer.h
- States.h
- etc.
Screens/
- VideoScreen.h
- UiScreen.h
- etc.
Network/
- Post.h
- FormReader.h
- etc.
testTimer/
- oF apptestScreens/
- oF apptestUi/
- oF appfinalOfApp/
- oF appThen I use this line in every ProjectName/testXXXX
main.cpp
ofSetDataPathRoot("../../SharedData/");
The problem is when I want to use binaries outside IDE (I use VS2015, win8). This path doesn't work anymore. The only way is to add text file (for example
datafolder.txt
) with a path and read data path from this file:string dataFolder; ofFile file("datafolder.txt"); file >> dataFolder; ofSetDataPathRoot(dataFolder);
Is this a mess or a correct way to organize shared data?
Posts: 1
Participants: 1