Examples of glMultMatrixf()


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

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

        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

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

         
          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

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

         
          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

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

  float[] applyMArray = new float[16];
  private void applyTransform(Matrix4f matrix) {
    GL2 gl = drawable.getGL().getGL2();
    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

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

    }

    @Override
    public void multMatrix(final FloatBuffer fb) {
        final GL2ES1 gl = GLContext.getCurrentGL().getGL2ES1();
        gl.glMultMatrixf(fb);
    }

    @Override
    public void loadMatrix(final FloatBuffer fb) {
        final GL2ES1 gl = GLContext.getCurrentGL().getGL2ES1();
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.