Examples of glColor4d()


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

      float minX = minMax[0]-10;
      float minY = minMax[1]-10;
      float maxX = minMax[2]+10;
      float maxY = minMax[3]+10;
     
      gl.glColor4d (0.0, 0.0, 0.0, 1.0);
     
      gl.glEnableClientState(GL.GL_VERTEX_ARRAY);
    gl.glEnableClientState(GL.GL_COLOR_ARRAY);
   
    gl.glVertexPointer(3, GL.GL_FLOAT, 0, vertBuff);
View Full Code Here

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

//        gl.glStencilOp(GL.GL_KEEP, GL.GL_INVERT, GL.GL_INVERT);
       
        //TODO notice, "stencilOP" zum wert in stencilbuffer reinschreiben
        //"stencilfunc" vergleicht framebuffer mit stencilbuffer und macht stencilOP wenn bedingung stimmt
       
        gl.glColor4d (colorBuff.get(0), colorBuff.get(1), colorBuff.get(2), colorBuff.get(3));
       
      //DRAW //FIXME why does this not work?
      if (indexBuff == null){
        gl.glDrawArrays(GL.GL_TRIANGLE_FAN, 0, vertBuff.capacity()/3);
      }else{
View Full Code Here

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

        //DRAW
//      gl.glDrawElements(GL.GL_LINE_STRIP, indexBuff.capacity(), GL.GL_UNSIGNED_INT, indexBuff);
//      gl.glDrawArrays(GL.GL_LINE_STRIP, 0, vertexArr.length);
       
        /////TEST/// //TODO make vertex pointer arrays?
        gl.glColor4d (strokeColBuff.get(0), strokeColBuff.get(1), strokeColBuff.get(2), strokeColBuff.get(3));
        for (Vertex[] outline : outLines){
         gl.glBegin (GL.GL_LINE_STRIP);
           for (Vertex vertex : outline){
             gl.glVertex3f (vertex.getX(), vertex.getY(), vertex.getZ());
           }
View Full Code Here

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

    //FIXME TEST
    Tools3D.setLineSmoothEnabled(gl, true);

    gl.glLineWidth(this.getStrokeWeight());
    FloatBuffer strokeColBuff = this.getGeometryInfo().getStrokeColBuff();
    gl.glColor4d (strokeColBuff.get(0), strokeColBuff.get(1), strokeColBuff.get(2), strokeColBuff.get(3));
    for (Vertex[] varr : this.outlineContours){
      gl.glBegin(GL.GL_LINE_STRIP);
      for(Vertex v : varr){
        gl.glVertex3f(v.x, v.y, v.z);
      }
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.