Examples of glTexCoord2f()


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

        for ( Vector3 v: face) {
          gl.glNormal3d(n.x, n.y, n.z);
          //gl.glTexCoord2f(1.0f, 1.0f);
          //gl.glColor3d(v.a1, v.a2, v.a3);
          gl.glVertex3d(v.x, v.y, v.z);
          gl.glTexCoord2f(0.0f, 1.0f);
        }
        gl.glEnd();
      }
     
     
View Full Code Here

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

        for ( Vector3 v: face) {
          gl.glNormal3d(n.x, n.y, n.z);
          //gl.glTexCoord2f(1.0f, 1.0f);
          gl.glColor3d(0.2,0.2, 0.2);
          gl.glVertex3d(v.x, v.y, v.z);
          gl.glTexCoord2f(0.0f, 1.0f);
        }
        gl.glEnd();
      }

   
View Full Code Here

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

      float temp = texLeft;
      texLeft = texRight;
      texRight = temp;
    }
       
    gl.glTexCoord2f(texLeft, texTop);
        gl.glVertex2f(0, 0);

        gl.glTexCoord2f(texRight, texTop);
        gl.glVertex2f(width, 0);
View Full Code Here

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

    }
       
    gl.glTexCoord2f(texLeft, texTop);
        gl.glVertex2f(0, 0);

        gl.glTexCoord2f(texRight, texTop);
        gl.glVertex2f(width, 0);

        gl.glTexCoord2f(texRight, texBottom);
        gl.glVertex2f(width, height);
   
View Full Code Here

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

        gl.glVertex2f(0, 0);

        gl.glTexCoord2f(texRight, texTop);
        gl.glVertex2f(width, 0);

        gl.glTexCoord2f(texRight, texBottom);
        gl.glVertex2f(width, height);
   
        gl.glTexCoord2f(texLeft, texBottom);
        gl.glVertex2f(0, height);
View Full Code Here

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

        gl.glVertex2f(width, 0);

        gl.glTexCoord2f(texRight, texBottom);
        gl.glVertex2f(width, height);
   
        gl.glTexCoord2f(texLeft, texBottom);
        gl.glVertex2f(0, height);
  }

  public void drawImage(ch.blackspirit.graphics.Image image, float width, float height, int subImageX, int subImageY, int subImageWidth, int subImageHeight, Flip flip) {
View Full Code Here

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

      float temp = texLeft;
      texLeft = texRight;
      texRight = temp;
    }

    gl.glTexCoord2f(texLeft, texTop);
        gl.glVertex2f(0, 0);

        gl.glTexCoord2f(texRight, texTop);
        gl.glVertex2f(width, 0);
View Full Code Here

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

        gl.glVertex2f(0, 0);

        gl.glTexCoord2f(texRight, texTop);
        gl.glVertex2f(width, 0);

        gl.glTexCoord2f(texRight, texBottom);
        gl.glVertex2f(width, height);

        gl.glTexCoord2f(texLeft, texBottom);
        gl.glVertex2f(0, height);
View Full Code Here

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

        gl.glVertex2f(width, 0);

        gl.glTexCoord2f(texRight, texBottom);
        gl.glVertex2f(width, height);

        gl.glTexCoord2f(texLeft, texBottom);
        gl.glVertex2f(0, height);

  }
 
  // ==================== Points ====================
View Full Code Here

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

        c = t.getColor(0);
        if(c == null) c = color;
        gl.glColor4f(c.x, c.y, c.z, c.w);
        float texX = coords.left() + (coords.right() - coords.left()) / joglImage.texture.getImageWidth() * tc1.x;
        float texY = coords.top() + (coords.bottom() - coords.top()) / joglImage.texture.getImageHeight() * tc1.y;
        gl.glTexCoord2f(texX, texY);
            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.