This project is read-only.

not getting OpenGL.GL_POINT to work

Feb 27, 2014 at 10:54 PM
I'm not getting a point. I was able to get a square primitive, just not a point.. Suggestion?
void Render(OpenGL gl)
            //clear color and depth buffer 
            gl.Clear(OpenGL.GL_COLOR_BUFFER_BIT | OpenGL.GL_DEPTH_BUFFER_BIT);
            gl.LoadIdentity();//load identity matrix

            gl.Translate(0.0f, 0.0f, -4.0f);//move forward 4 units

            gl.Color(0.0f, 0.0f, 1.0f); //blue color

            gl.PointSize(10.0f);//set point size to 10 pixels

            gl.Begin(OpenGL.GL_POINTS); //starts drawing of points
            gl.Vertex(1.0f, 1.0f, 0.0f);//upper-right corner
            gl.Vertex(-1.0f, -1.0f, 0.0f);//lower-left corner
            gl.End();//end drawing of points