1234567891011121314151617 |
- #ifndef _SHADERS_
- #define _SHADERS_
- unsigned int create_shader(int type, const char *src);
- unsigned int create_program(unsigned int vsdr, unsigned int fsdr);
- //Converts file contents to char* and calls create_shader with it
- unsigned int load_shader(int type, const char *fname);
- /* Takes filename vertex and fragment shader as parameters,
- * calls load_shader for each of them,
- * returns create_program with the created shaders.
- */
- unsigned int load_program(const char *vfname, const char *ffname);
- #endif
|