Examples of glColor4f()


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

  public void getColor(Color4f color) {
    color.set(this.color);
  }
  public void applyColor() {
    GL gl = drawable.getGL();
    gl.glColor4f(color.x, color.y, color.z, color.w);
  }
 
  public void setBaseColor(Color4f color) {
    endPrimitivesKeepImage();
    this.baseColor = color;
View Full Code Here

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

        if(l == null) continue;

        p = l.getPoint(0);
        c = l.getColor(0);
        if(c == null) c = color;
        gl.glColor4f(c.x, c.y, c.z, c.w);
          gl.glVertex2f(p.x, p.y);
 
          p = l.getPoint(1);
        c = l.getColor(1);
        if(c == null) c = color;
View Full Code Here

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

          gl.glVertex2f(p.x, p.y);
 
          p = l.getPoint(1);
        c = l.getColor(1);
        if(c == null) c = color;
        gl.glColor4f(c.x, c.y, c.z, c.w);
          gl.glVertex2f(p.x, p.y);
      }
      // reset color;
      applyColor();
    } else {
View Full Code Here

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

        if(t == null) continue;
     
        p = t.getPoint(0);
        c = t.getColor(0);
        if(c == null) c = color;
        gl.glColor4f(c.x, c.y, c.z, c.w);
          gl.glVertex2f(p.x, p.y);
 
          p = t.getPoint(1);
        c = t.getColor(1);
        if(c == null) c = color;
View Full Code Here

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

          gl.glVertex2f(p.x, p.y);
 
          p = t.getPoint(1);
        c = t.getColor(1);
        if(c == null) c = color;
        gl.glColor4f(c.x, c.y, c.z, c.w);
          gl.glVertex2f(p.x, p.y);

        p = t.getPoint(1);
        c = t.getColor(1);
        if(c == null) c = color;
View Full Code Here

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

          gl.glVertex2f(p.x, p.y);

        p = t.getPoint(1);
        c = t.getColor(1);
        if(c == null) c = color;
        gl.glColor4f(c.x, c.y, c.z, c.w);
          gl.glVertex2f(p.x, p.y);
 
          p = t.getPoint(2);
        c = t.getColor(2);
        if(c == null) c = color;
View Full Code Here

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

          gl.glVertex2f(p.x, p.y);
 
          p = t.getPoint(2);
        c = t.getColor(2);
        if(c == null) c = color;
        gl.glColor4f(c.x, c.y, c.z, c.w);
          gl.glVertex2f(p.x, p.y);

        p = t.getPoint(2);
        c = t.getColor(2);
        if(c == null) c = color;
View Full Code Here

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

          gl.glVertex2f(p.x, p.y);

        p = t.getPoint(2);
        c = t.getColor(2);
        if(c == null) c = color;
        gl.glColor4f(c.x, c.y, c.z, c.w);
          gl.glVertex2f(p.x, p.y);
 
          p = t.getPoint(0);
        c = t.getColor(0);
        if(c == null) c = color;
View Full Code Here

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

          gl.glVertex2f(p.x, p.y);
 
          p = t.getPoint(0);
        c = t.getColor(0);
        if(c == null) c = color;
        gl.glColor4f(c.x, c.y, c.z, c.w);
          gl.glVertex2f(p.x, p.y);
      }
      // reset color;
      applyColor();
    } else {
View Full Code Here

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

        if(t == null) continue;

        p = t.getPoint(0);
        c = t.getColor(0);
        if(c == null) c = color;
        gl.glColor4f(c.x, c.y, c.z, c.w);
            gl.glVertex2f(p.x, p.y);
       
            p = t.getPoint(1);
        c = t.getColor(1);
        if(c == null) c = color;
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.