I am really sorry about posting that much code but I get the following Exception:
System.Exception: Extension function glUseProgram not supported
So I think I use SharpGL maybe in wrong order? It appears black screen but my FPS goes down to 10-12FPS so something he's doing.
Step 2: I create my vertices and indices:
for each Vertex I fill a float array with position(x,yz), normal(x,y,z) and color(r,g,b,a).
Then I fill a short array with indices to link all vertices together.
Step 3: I create a VertexBufferObject and IndexBufferObject:
Hello,
I try to write a parabola using a heightmap. I use SharpGL and WPF. I 've oriented at
I am really sorry about posting that much code but I get the following Exception:
System.Exception: Extension function glUseProgram not supported
So I think I use SharpGL maybe in wrong order? It appears black screen but my FPS goes down to 10-12FPS so something he's doing.My shaders:
Vertex Shader
Fragment Shader:
First of all I just want to create my ShaderProgram and link my ShaderSource In openGLControl_OpenGLInitialized() I initialize following:
Step 2: I create my vertices and indices: for each Vertex I fill a float array with position(x,yz), normal(x,y,z) and color(r,g,b,a). Then I fill a short array with indices to link all vertices together.
Step 3: I create a VertexBufferObject and IndexBufferObject:
In my Draw Function openGLControl_OpenGLDraw I want to point and enable my attributes.