Versuche:
Code: Select all
CompileShaders("Data/Shaders/ui", 0b01, MainUiShader);
Hier ist der Header mit Funktionen:
Code: Select all
void CompileShader(std::string ShaderFile, GLenum ShaderType, GLuint ShaderVariable) {
LoadFile(ShaderFile);
ShaderVariable = glCreateShader(ShaderType);
const char* ShaderSource = TempData0.c_str();
glShaderSource(ShaderVariable, 1, &ShaderSource, NULL);
glCompileShader(ShaderVariable);
glGetShaderiv(ShaderVariable, GL_COMPILE_STATUS, &TempValue);
if (!TempValue)
{glGetShaderInfoLog(ShaderVariable, 4096, NULL, Log);
std::cout