GrafitiDemo.Viewer.Display C# (CSharp) Méthode

Display() private méthode

private Display ( ) : void
Résultat void
        private void Display()
        {
            Gl.glEnable(Gl.GL_LINE_SMOOTH);
            Gl.glHint(Gl.GL_LINE_SMOOTH_HINT, Gl.GL_NICEST);
            Gl.glClear(Gl.GL_COLOR_BUFFER_BIT);
            Gl.glLoadIdentity();
            Gl.glScalef(1, -1, 1);
            Gl.glTranslatef(m_projectionX - m_projectionW / 2, m_projectionY - m_projectionH / 2, -5f);
            Gl.glTranslatef(m_projectionW / 2, m_projectionH / 2, 0);
            Gl.glRotatef(m_projectionYAngle, 1, 0, 0);
            Gl.glTranslatef(-m_projectionW / 2, -m_projectionH / 2, 0);
            Gl.glScalef(m_projectionW, m_projectionH, 0);

            lock (s_lock)
            {
                // draw finger groups
                foreach (DemoGroup demoGroup in m_demoGroups)
                    demoGroup.Draw1();

                if (m_displayCalculator)
                    m_calculator.Draw();

                foreach (DemoGroup demoGroup in m_demoGroups)
                    demoGroup.Draw2();
            }

            // draw objects
            s_demoObjectManager.Draw();

            //Gl.glPushMatrix();
            //    Gl.glTranslatef(0.2f, 0.3f, 0f);
            //    Gl.glScaled(0.001, -0.001, 1);
            //    Glut.glutStrokeString(Glut.GLUT_STROKE_ROMAN, "test stroke");
            //    Glut.glutBitmapString(Glut.GLUT_BITMAP_HELVETICA_10, "test bitmap");
            //Gl.glPopMatrix();

            if (m_displayCalibrationGrid)
                DrawCalibrationGrid();

            Glut.glutSwapBuffers();
        }