Package javax.media.opengl

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


  float[] applyMArray = new float[16];
  private void applyTransform(Matrix4f matrix) {
    GL gl = drawable.getGL();
    gl.glLoadIdentity();
    convert(matrix, applyMArray);
    gl.glMultMatrixf(applyMArray, 0);
  }
  private void convert(Matrix4f m, float[] d) {
    d[0] = m.m00;
    d[1] = m.m10;
    d[2] = m.m20;
View Full Code Here


        ctm[13] = m.m13;
        ctm[14] = m.m23;
        ctm[15] = m.m33;

        // apply this m and get to work
        gl.glMultMatrixf(ctm, 0);
      break;
    default:
      break;
    }
   
View Full Code Here

         
          if (NewPt != null){
            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);
View Full Code Here

         
          if (NewPt != null){
            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);
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.