Package javax.media.opengl

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


      //FIXME TEST
      PGraphicsOpenGL pgl = (PGraphicsOpenGL)g;
      GL gl = pgl.gl;
      gl.glDisableClientState(GL.GL_VERTEX_ARRAY);
      gl.glDisableClientState(GL.GL_COLOR_ARRAY);
      gl.glDisable(GL.GL_LINE_SMOOTH);
      gl.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
    }
  }
 
 
View Full Code Here


//      pa.popMatrix();
    }
   
    if (openGl){
//      gl= pgl.beginGL();
      gl.glDisable(GL.GL_SCISSOR_TEST);
//      pgl.endGL();
    }
  }
 
 
View Full Code Here

        // Draw with STENCIL         //
        /////////////////////////////////////
//      /*
      gl.glClearStencil(0);
      gl.glColorMask(false,false,false,false);
      gl.glDisable(GL.GL_BLEND);
     
      gl.glDepthMask(false);//remove..?
     
      //FIXME do this for non-zero rule?
//      gl.glColorMask(true,true,true,true);
View Full Code Here

          gl.glEnd ();
        }
//        */
        ////////////////////////////////////
//        gl.glDepthMask(true); //Disabled to avoid too many state switches,
        gl.glDisable (GL.GL_STENCIL_TEST);   //Disabled to avoid too many state switches
    gl.glEndList();
    returnVal[0] = listIDFill;
       
    //////////////////////////////
    // Draw aliased outline    //
View Full Code Here

        gl.glDrawArrays(fillDrawMode, 0, vertBuff.capacity()/3);
      }
     
      if (textureDrawn){
        gl.glBindTexture(textureTarget, 0);
        gl.glDisable(textureTarget);
      }
    gl.glEndList();
    //// STOP recording display list and DRAW////////////////////
   
    if (geometryInfo.isContainsNormals()){
View Full Code Here

        gl.glDrawElements(GL.GL_LINE_STRIP, indexBuff.capacity(), GL.GL_UNSIGNED_INT, indexBuff); ////indices.limit()?
      }
     
      //RESET LINE STIPPLE
      if (lineStipple != 0)
        gl.glDisable(GL.GL_LINE_STIPPLE);
     
//      if (drawSmooth)
//        gl.glDisable(GL.GL_LINE_SMOOTH);
      //FIXME TEST for multisample
      Tools3D.setLineSmoothEnabled(gl, false);
View Full Code Here

  public static void drawFilledBezierShape(PApplet pa, Vertex[] vertexArr){
    GL gl=((PGraphicsOpenGL)pa.g).beginGL();
    float[] minMax = ToolsGeometry.getMinXYMaxXY(vertexArr);
//    /*
     // Draw to stencil
        gl.glDisable (GL.GL_BLEND);
        gl.glEnable (GL.GL_STENCIL_TEST);
//        gl.glStencilMask (0x01);
        gl.glStencilOp (GL.GL_KEEP, GL.GL_KEEP, GL.GL_INVERT);
        gl.glStencilFunc (GL.GL_ALWAYS, 0, ~0);
        gl.glColorMask (false, false, false, false);
View Full Code Here

         for (int i = 0; i < allVertsBezierResolved.length; i++) {
          Vertex vertex = allVertsBezierResolved[i];
          gl.glVertex3f(vertex.x, vertex.y, vertex.z);
         }
        gl.glEnd ();
        gl.glDisable (GL.GL_LINE_SMOOTH);
//    */
//    /*
        // Draw FILL
        gl.glStencilFunc (GL.GL_EQUAL, 0x01, 0x01);
        gl.glStencilOp (GL.GL_ZERO, GL.GL_ZERO, GL.GL_ZERO);
View Full Code Here

          gl.glVertex3f (minMax[2], minMax[1], 0.0f);
          gl.glVertex3f (minMax[2], minMax[3], 0.0f);
          gl.glVertex3f (minMax[0],  minMax[3], 0.0f);
        gl.glEnd ();

        gl.glDisable(GL.GL_STENCIL_TEST);
//    */
        ((PGraphicsOpenGL)pa.g).endGL();
  }
 
 
View Full Code Here

    //FIXME TRIAL
    MTLight aLight = this.getLight();
    if (aLight != null){
      aLight.disable();
      GL gl = ((PGraphicsOpenGL)g).gl;
      gl.glDisable(GL.GL_LIGHTING);
    }
  }
 
  // CLIP ////////////////
  /** The clip. */
 
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.