I am starting to go through the Legacy Tutorials that you recommended. I hope they are not too aimed at game developers. I am not a game developer and do not play computer games.
I have looked at the red book. But when I take your FormSimpleDrawing example and replace your drawing code with the very first example in the red book, nothing happens. Here is what I replace it with:
gl.ClearColor (0.0f, 0.0f, 0.0f, 0.0f);
gl.Color(1.0f, 1.0f, 1.0f);
gl.Vertex (0.25f, 0.25f, 0.0f);
gl.Vertex (0.75f, 0.25f, 0.0f);
gl.Vertex (0.75f, 0.75f, 0.0f);
gl.Vertex (0.25f, 0.75f, 0.0f);
Tweaking the X and Y values (and also the Z values) in the gl.Vertex calls has no effect. I leave your preceding code in place:
OpenGL gl = this.openGLControl1.OpenGL;
gl.Clear(OpenGL.GL_COLOR_BUFFER_BIT | OpenGL.GL_DEPTH_BUFFER_BIT); // Clear The Screen And The Depth Buffer
gl.LoadIdentity(); // Reset The View
Inserting this line from the red book does not help:
gl.Ortho(0.0f, 1.0f, 0.0f, 1.0f, -1.0f, 1.0f);
I do not fully understand the environment that SharpGL sets up.
I am trying to do something very simple - display a bunch of line fragments (using gl.Begin(OpenGL.GL_LINE_STRIP);) and allow the user to view them from different angles.
Maybe I should start from a different example.