I'm writing a basic OpenGL framework in C# and I've got a problem that is holding me for 3 days.
I've managed to create the window, OpenGL context and all necessary things using OpenTK.
I can also clear the screen using glClear/glClearColor, but I can't render anything.
As I'm using an OpenTK assembly built with DEBUG any OpenGL error that I could get would be catch by OpenTK and a exception would be thrown but there are no errors.
I've working on this for 3 days and I have no clue of what is the problem. If someone need any piece of code to help me, just ask.
in vec3 iPosition;
in vec3 iNormal;
in vec4 iColor;
out vec4 gColor;
uniform mat4 WorldViewProjection;
gColor = iColor;
gl_Position = WorldViewProjection * vec4(iPosition, 1);
in vec4 gColor;
uniform float Alpha;
out vec4 OutFragColor;
OutFragColor = vec4(1,1,1,1);
0.75f, 0.75f, 0.0f
0.75f, -0.75f, 0.0f
-0.75f, -0.75f, 0.0f
This would be a closed source engine but I'm pushing the code on GitHub so someone could help: https://github.com/GreenBoxDevelopment/gb3d
Some important files: