12345678910111213141516171819202122 |
- #ifndef IGL_COMPILE_AND_LINK_PROGRAM_H
- #define IGL_COMPILE_AND_LINK_PROGRAM_H
- #include "igl_inline.h"
- #include "OpenGL_convenience.h"
- namespace igl
- {
- // Compile and link very simple vertex/fragment shaders
- //
- // Inputs:
- // v_str string of vertex shader contents
- // f_str string of fragment shader contents
- // Returns id of program
- //
- // Known bugs: this seems to duplicate `create_shader_program` with less
- // functionality.
- IGL_INLINE GLuint compile_and_link_program(
- const char * v_str, const char * f_str);
- }
- #ifndef IGL_STATIC_LIBRARY
- # include "compile_and_link_program.cpp"
- #endif
- #endif
|