I\'m looking for a way to easily embed any external binary data in a C/C++ application compiled by GCC.
A good example of what I\'d like to do is handling shader cod
You could do this in a header file :
#ifndef SHADER_SRC_HPP #define SHADER_SRC_HPP const char* shader= " //source "; #endif
and just include that.
Other way is to read the shader file.