Examples of glPopMatrix()


Examples of javax.media.opengl.GL.glPopMatrix()

   
      gl.glEnable(GL.GL_LIGHTING);

     
      gl.glPopMatrix();
      gl.glPopAttrib();
    }
   
    //draw shadows
   
View Full Code Here

Examples of javax.media.opengl.GL.glPopMatrix()

          gl.glVertex3d(v.x, v.y, v.z);
        }
        gl.glEnd();
      }
     
      gl.glPopMatrix();
    }

    gl.glEnable(GL.GL_LIGHTING);
   
View Full Code Here

Examples of javax.media.opengl.GL.glPopMatrix()

        // Restore enabled state
        gl.glPopAttrib();

        // Restore old matrices
        gl.glPopMatrix();
        gl.glMatrixMode(GL.GL_MODELVIEW);
        gl.glPopMatrix();
    }

    public void displayChanged(GLAutoDrawable glDrawable, boolean b, boolean b1) {
View Full Code Here

Examples of javax.media.opengl.GL.glPopMatrix()

        gl.glPopAttrib();

        // Restore old matrices
        gl.glPopMatrix();
        gl.glMatrixMode(GL.GL_MODELVIEW);
        gl.glPopMatrix();
    }

    public void displayChanged(GLAutoDrawable glDrawable, boolean b, boolean b1) {
    }
View Full Code Here

Examples of javax.media.opengl.GL.glPopMatrix()

        // Restore enabled state
        gl.glPopAttrib();

        // Restore old matrices
        gl.glPopMatrix();
        gl.glMatrixMode(GL.GL_MODELVIEW);
        gl.glPopMatrix();
    }

    public void displayChanged(GLAutoDrawable glDrawable, boolean b, boolean b1) {
View Full Code Here

Examples of javax.media.opengl.GL.glPopMatrix()

        gl.glPopAttrib();

        // Restore old matrices
        gl.glPopMatrix();
        gl.glMatrixMode(GL.GL_MODELVIEW);
        gl.glPopMatrix();
    }

    public void displayChanged(GLAutoDrawable glDrawable, boolean b, boolean b1) {
    }
View Full Code Here

Examples of javax.media.opengl.GL.glPopMatrix()

          * (float) Math.sin(angle + 3 * da), -width * 0.5f);
      gl.glVertex3f(r0 * (float) Math.cos(angle), r0
          * (float) Math.sin(angle), -width * 0.5f);
    }
    gl.glEnd();
    gl.glPopMatrix();
  }
 
  @Override
  public void init(GLAutoDrawable drawable) {
    // TODO Auto-generated method stub
View Full Code Here

Examples of javax.media.opengl.GL.glPopMatrix()

    gl.glScalef(1, -1, 1);
    gl.glTranslatef(p.width/2, p.height/2, 0);
    gl.glScalef((float)map.sc, (float)map.sc, 1);
    gl.glTranslatef((float)map.tx, (float)map.ty, 0);
    gl.glGetDoublev(GL.GL_MODELVIEW_MATRIX, model);
    gl.glPopMatrix();
//    pgl.endGL();
   
    try {
      mgl.set(new float[]{
          (float)model.get(0), (float)model.get(4), (float)model.get(8)(float)model.get(12),
View Full Code Here

Examples of javax.media.opengl.GL.glPopMatrix()

            PGraphicsOpenGL pgl = ((PGraphicsOpenGL)applet.g);
          GL gl   = pgl.beginGL()
            gl.glPushMatrix();
              gl.glMultMatrixf(shape.getGlobalMatrix().toFloatBuffer());
              NewPt = Tools3D.projectGL(gl, pgl.glu, NewPt, NewPt);
            gl.glPopMatrix();
            pgl.endGL();
           
            this.mapToSphere(NewPt, this.StVec);
          }else{
            logger.error(getName() + " Didnt hit sphere!");
View Full Code Here

Examples of javax.media.opengl.GL.glPopMatrix()

            PGraphicsOpenGL pgl = ((PGraphicsOpenGL)applet.g);
          GL gl   = pgl.beginGL()
            gl.glPushMatrix();
              gl.glMultMatrixf(shape.getGlobalMatrix().toFloatBuffer());
              NewPt = Tools3D.projectGL(gl, pgl.glu, NewPt, NewPt);
            gl.glPopMatrix();
            pgl.endGL();
           
            logger.debug(NewPt);
            this.drag(NewPt, q);
          }else{
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.