openframeworks / openFrameworks

openFrameworks is a community-developed cross platform toolkit for creative coding in C++.
http://openframeworks.cc
Other
9.94k stars 2.55k forks source link

projectGenerator ignores shader .vert and .frag files #1034

Open damian0815 opened 12 years ago

damian0815 commented 12 years ago

If it finds .vert, .frag (and .geom?) files in the data/ folder, the project generator should make a new folder, in the project file, next to (or inside) src called data/ and add the files to it. (data/ so that beginners can find the files in Finder)

obviousjim commented 12 years ago

are you suggesting this for when it adds addons? I think this would be really cool. perhaps the project generator could look for a folder called data/ in the addon directory (next to src/ example/ and libs/) and copy all the contents into bin/data/ when that addon is added for the project.

damian0815 commented 12 years ago

no i mean in general. eg the examples/gl/shaderExample project is created without internal links to the .vert and .frag files, so you have to go into the data folder yourself and edit them with a text editor (and the fact that they are there, editable and text files is not at all apparent to a beginner).

ofTheo commented 12 years ago

this could easily be made to work for xcode - I often add my shaders to my project to make it easier to edit. not sure about the other platforms though.