| 12 | #endif |
| 13 | |
| 14 | static size_t getFileLength(FILE* file){ |
| 15 | size_t length; |
| 16 | size_t currPos = ftell(file); |
| 17 | fseek(file, 0, SEEK_END); |
| 18 | length = ftell(file); |
| 19 | fseek(file, currPos, SEEK_SET); |
| 20 | return length; |
| 21 | } |
| 22 | |
| 23 | static GLuint shaderLoad(const char* filename, GLenum shaderType){ |
| 24 | FILE* file = fopen(filename, "r"); |