Package javax.media.opengl

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

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.