Beispiel #1
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            Gl.glClear(Gl.GL_COLOR_BUFFER_BIT | Gl.GL_DEPTH_BUFFER_BIT);

            Gl.glLoadIdentity();
            Gl.glColor3f(0, 1.0f, 0);

            //Gl.glPushMatrix();
            Gl.glTranslated(1, 0, -10);
            Gl.glRotated(1, 1, 0, 1);

            // рисуем сферу с помощью библиотеки FreeGLUT
            //Glut.glutWireSphere(3, 20, 20);
            Gl.glColor3f(0, 0, 1.0f);
            //Glut.glutWireIcosahedron();
            Glut.glutStrokeString(Glut.GLUT_STROKE_MONO_ROMAN, "awsdawdawdawd");
            Glut.glutInitDisplayString("qwewqe");

            //Glut.glutWireCube(1);

            Gl.glFlush();
            simpleOpenGlControl1.Invalidate();
            //x += trackBar1.Value;
        }