Package javax.media.opengl

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


                gl.glLineWidth(lineWidth.floatValue());

            if (!dc.isPickingMode())
            {
                gl.glHint(GL.GL_LINE_SMOOTH_HINT, this.getActiveAttributes().getAntiAliasHint());
                gl.glEnable(GL.GL_LINE_SMOOTH);
            }
        }
    }

    /**
 
View Full Code Here


    //   gl.gluPerspective(45.0f,aspect,0.01f,10.0f);
    Point3D viewpoint = nav.getDirection().add(nav.viewer);
    glu.gluLookAt(nav.viewer.x, nav.viewer.y, nav.viewer.z, viewpoint.x, viewpoint.y, viewpoint.z, nav.getUp().x, nav.getUp().y, nav.getUp().z);
    //  gl.glFrustum( -1.0, 1.0, -1.0, 1.0, 10.0, 100.0 );

    gl.glEnable(GL.GL_DEPTH_TEST);
   
    render(gl);

    gl.glFlush();
   
View Full Code Here

      GLU glu = new GLU();
      GLUT glut = new GLUT();
     
      gl.glLoadIdentity();
      gl.glColor3f(1,1,1);
      gl.glEnable(GL.GL_COLOR_MATERIAL);
      gl.glDisable(GL.GL_TEXTURE_2D);
      gl.glDisable(GL.GL_DEPTH);

      gl.glDepthMask(false);
     
View Full Code Here

      gl.glDisable(GL.GL_TEXTURE_2D);
      gl.glDisable(GL.GL_DEPTH);

      gl.glDepthMask(false);
     
      gl.glEnable (GL.GL_BLEND);
      gl.glBlendFunc (GL.GL_SRC_ALPHA,
          GL.GL_ONE_MINUS_SRC_ALPHA);
      // draw markers
      for(Marker marker : markers) {
//        Point3D center = getGlmain3d().getSphere().getPoint(marker.point);
View Full Code Here

        }
        gl.glEnd();
      }

   
      gl.glEnable(GL.GL_LIGHTING);

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

      }
     
      gl.glPopMatrix();
    }

    gl.glEnable(GL.GL_LIGHTING);
   

    // Finish this frame
    gl.glFlush();
  }
View Full Code Here

  @Override
  public void init(GLAutoDrawable drawable) {
    // Setup GL
    GL gl = drawable.getGL();
    gl.glEnable (GL.GL_DEPTH_TEST);
    gl.glEnable(GL.GL_CULL_FACE);
    gl.glEnable(GL.GL_LINE_SMOOTH);
      gl.glHint(GL.GL_PERSPECTIVE_CORRECTION_HINT, GL.GL_NICEST);
    gl.glBlendFunc(GL.GL_SRC_ALPHA, GL.GL_ONE_MINUS_SRC_ALPHA);
    //enable vsync
View Full Code Here

  @Override
  public void init(GLAutoDrawable drawable) {
    // Setup GL
    GL gl = drawable.getGL();
    gl.glEnable (GL.GL_DEPTH_TEST);
    gl.glEnable(GL.GL_CULL_FACE);
    gl.glEnable(GL.GL_LINE_SMOOTH);
      gl.glHint(GL.GL_PERSPECTIVE_CORRECTION_HINT, GL.GL_NICEST);
    gl.glBlendFunc(GL.GL_SRC_ALPHA, GL.GL_ONE_MINUS_SRC_ALPHA);
    //enable vsync
    gl.setSwapInterval(1);
View Full Code Here

  public void init(GLAutoDrawable drawable) {
    // Setup GL
    GL gl = drawable.getGL();
    gl.glEnable (GL.GL_DEPTH_TEST);
    gl.glEnable(GL.GL_CULL_FACE);
    gl.glEnable(GL.GL_LINE_SMOOTH);
      gl.glHint(GL.GL_PERSPECTIVE_CORRECTION_HINT, GL.GL_NICEST);
    gl.glBlendFunc(GL.GL_SRC_ALPHA, GL.GL_ONE_MINUS_SRC_ALPHA);
    //enable vsync
    gl.setSwapInterval(1);
   
View Full Code Here

    gl.glBlendFunc(GL.GL_SRC_ALPHA, GL.GL_ONE_MINUS_SRC_ALPHA);
    //enable vsync
    gl.setSwapInterval(1);
   
    // init some lighting
    gl.glEnable(GL.GL_LIGHTING);
    gl.glEnable(GL.GL_LIGHT0);
    //gl.glShadeModel(GL.GL_FLAT);

    // Create light components
    float ambientLight[] = { 2.0f, 2.0f, 2.0f, 1.0f };
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.