| 45 | } |
| 46 | |
| 47 | GLuint createProgram(GLuint vertexShaderID, GLuint fragmentShaderID) |
| 48 | { |
| 49 | auto id = glCreateProgram(); |
| 50 | |
| 51 | glAttachShader(id, vertexShaderID); |
| 52 | glAttachShader(id, fragmentShaderID); |
| 53 | |
| 54 | glLinkProgram(id); |
| 55 | |
| 56 | return id; |
| 57 | } |
| 58 | |
| 59 | GLuint loadShader(const std::string& vertexShaderFile, const std::string& fragmentShaderFile) |
| 60 | { |