Shimatta Opengl: Shader Program: Implement compilation and use functions. Compilation from file still missing

This commit is contained in:
2020-06-25 23:46:15 +02:00
parent b855dcf0bc
commit c2e8301243
2 changed files with 238 additions and 2 deletions

View File

@@ -51,7 +51,7 @@ ShimattaOpenglProgram *shimatta_opengl_program_new_from_file(const char *vertex_
* @param program Shader Program
* @param error_text Error message from compilation. May be NULL.
* @param error_text_size Size in bytes of the error_text buffer. May be 0.
* @return 0 if successful. If Error error text will hold the error
* @return 0 if successful. If Error error text will hold the error. 1 is returned if program is already compiled
*/
int shimatta_opengl_program_compile(ShimattaOpenglProgram *program, char *error_text, size_t error_text_size);