Examples of glMultMatrixd()


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

   

    for ( DrawShape shape: toDraw) {
      gl.glPushAttrib(GL.GL_LIGHTING_BIT);
      gl.glPushMatrix();
      gl.glMultMatrixd(shape.getTransform().toArray(), 0);

     
      if (shape.getReferenceBody().deactivated) {
        float ambientLight[] = { 1.5f, 1.5f, 2.0f, 1.0f };
        //    float diffuseLight[] = { 0.8f, 0.0f, 0.8f, 1.0f };
View Full Code Here

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

    glu.gluLookAt(cameraFrom.x, cameraFrom.y, cameraFrom.z,
        cameraTo.x, cameraTo.y, cameraTo.z,
        0, 1, 0);

   
    gl.glMultMatrixd(shadowProjectionMatrix(new Vector3(75,350,-75), new Vector3(0,-20 + 0.0,0), new Vector3(0,-1,0)), 0);
   
    gl.glColor3d(0.85, 0.85, 0.85);
   
    for ( DrawShape shape: toDraw) {
      gl.glPushMatrix();
View Full Code Here

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

   
    gl.glColor3d(0.85, 0.85, 0.85);
   
    for ( DrawShape shape: toDraw) {
      gl.glPushMatrix();
      gl.glMultMatrixd(shape.getTransform().toArray(), 0);
//      gl.glMultMatrixd(Matrix4.pack(dt.shape.getTransform()),0);


      gl.glPolygonMode(GL.GL_FRONT_AND_BACK, GL.GL_FILL);
      Iterator<Vector3[]> i = shape.getFaces();
View Full Code Here

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

            double[] v = new double[16];
            double[] m = new double[16];
            copyTranspose(viewMatrix, v);
            copyTranspose(modelMatrix, m);
            gl.glLoadMatrixd(v, 0);
            gl.glMultMatrixd(m, 0);
        }
    }

    // The native method for setting the Projection matrix.
    @Override
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.