Embedding cg shaders in C++ GPGPU library
问题 I'm writing a GPGPU Fluid simulation, which runs using C++/OpenGL/Cg. At the moment, the library requires that the user specify a path to the shaders, which is will then read it from. I'm finding it extremely annoying to have to specify that in my own projects and testing, so I want to make the shader contents linked in with the rest. Ideally, my .cg files would still be browsable seperately, but a post-build step or pre-processor directive would include it in the source when required. To