Render GLSL Shader using C++ Plugin
Posted: Fri Nov 05, 2021 7:16 am
Like the topic says. I have compiled the shader code using:
glShaderSource(vertexShader, 1, const_cast<const char**>(&src), NULL);
glCompileShader(vertexShader);
I've used glGetShaderInfoLog to check for errors in the shader code, no shader errors.
Using
GLuint shaderProgram = glCreateProgram();
glAttachShader(shaderProgram, vertexShader);
To attach the shader.
There's more code, but it's likely not the correct code so I won't bother posting what I have unless it's asked for. The code runs and I have no errors.
As you can probably guess there's no output into the magic video window. I'm kinda lost here, not sure how to get this into the magic window from this code.
Any help would be wonderful!
Thanks!
glShaderSource(vertexShader, 1, const_cast<const char**>(&src), NULL);
glCompileShader(vertexShader);
I've used glGetShaderInfoLog to check for errors in the shader code, no shader errors.
Using
GLuint shaderProgram = glCreateProgram();
glAttachShader(shaderProgram, vertexShader);
To attach the shader.
There's more code, but it's likely not the correct code so I won't bother posting what I have unless it's asked for. The code runs and I have no errors.
As you can probably guess there's no output into the magic video window. I'm kinda lost here, not sure how to get this into the magic window from this code.
Any help would be wonderful!
Thanks!