Examples of glEnable()


Examples of com.badlogic.gdx.graphics.GL10.glEnable()

    } else {
      if (blendingDisabled) {
        Gdx.gl10.glDisable(GL10.GL_BLEND);
      } else {
        GL10 gl10 = Gdx.gl10;
        gl10.glEnable(GL10.GL_BLEND);
        gl10.glBlendFunc(blendSrcFunc, blendDstFunc);
      }
      mesh.render(GL10.GL_TRIANGLES, 0, spritesInBatch * 6);
    }

 
View Full Code Here

Examples of com.badlogic.gdx.graphics.GL20.glEnable()

    if (Gdx.graphics.isGL20Available()) {
      if (blendingDisabled) {
        Gdx.gl20.glDisable(GL20.GL_BLEND);
      } else {
        GL20 gl20 = Gdx.gl20;
        gl20.glEnable(GL20.GL_BLEND);
        gl20.glBlendFunc(blendSrcFunc, blendDstFunc);
      }

      if (customShader != null)
        mesh.render(customShader, GL10.GL_TRIANGLES, 0, spritesInBatch * 6);
 
View Full Code Here

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

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

    //   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

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

      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

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

      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

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

        }
        gl.glEnd();
      }

   
      gl.glEnable(GL.GL_LIGHTING);

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

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

      }
     
      gl.glPopMatrix();
    }

    gl.glEnable(GL.GL_LIGHTING);
   

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

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

  @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

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

  @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
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.