Exemplo n.º 1
0
        public override void Render(ModelContainer _3dsModel)
        {
            Gl.glPushMatrix();
            Gl.glTranslatef(0.0f, 0f, tz);

            Gl.glPushMatrix();


            float[] qaRed   = { 0.156863f, 0.156863f, 0.156863f, 1f };
            float[] qaBlack = { 0f, 0f, 0f, 0.5f };
            Gl.glMaterialfv(Gl.GL_FRONT, Gl.GL_AMBIENT, qaRed);
            Gl.glMaterialfv(Gl.GL_FRONT, Gl.GL_DIFFUSE, qaRed);
            Gl.glMaterialfv(Gl.GL_FRONT, Gl.GL_SPECULAR, qaBlack);



            Gl.glScalef(scale, scale, scale);
            Gl.glPushMatrix();
            Gl.glRotatef(mouseY, 1f, 0f, 0f);
            Gl.glRotatef(mouseX, 0f, 1f, 0f);
            Gl.glRotatef(wingInclination, 0f, 0f, 1f);
            Gl.glPushMatrix();
            Gl.glTranslatef(0.0f, airplaneHeight, 0.0f);
            _3dsModel.Draw();
            Gl.glPopMatrix();
            Gl.glPopMatrix();
            Gl.glPopMatrix();

            Gl.glPopMatrix();
        }
Exemplo n.º 2
0
 public void Dibujar()
 {
     m.Draw();
 }