diff options
Diffstat (limited to 'lib/embed-glsl.cpp.m4')
-rw-r--r-- | lib/embed-glsl.cpp.m4 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/embed-glsl.cpp.m4 b/lib/embed-glsl.cpp.m4 new file mode 100644 index 0000000..9e4c6d4 --- /dev/null +++ b/lib/embed-glsl.cpp.m4 @@ -0,0 +1,11 @@ +changecom()dnl +// NAME +#include "substr(TYPE,1)-NAME.h" +#include <GL/glew.h> +#include "gfx/gl/shader-source.h" + +constexpr const GLchar * src { R"GLSL-EMBED(dnl +include(SOURCE))GLSL-EMBED" }; +constexpr auto len { constexpr_strlen (src) }; + +const GLsource NAME`_'substr(TYPE,1) { src, len, GLTYPE }; |