List of usage examples for org.lwjgl.opengl GL11 glTexCoord3f
public static native void glTexCoord3f(@NativeType("GLfloat") float s, @NativeType("GLfloat") float t, @NativeType("GLfloat") float r);
From source file:net.smert.frameworkgl.opengl.helpers.LegacyRenderHelper.java
License:Apache License
public void texCoord(float s, float t, float r) { GL11.glTexCoord3f(s, t, r); }
From source file:src.user.Minimap.java
License:Open Source License
private void renderTex(float fadeVal) { ////from w w w. j a v a2 s .c o m //You draw a diamond-shaped area around the four points- final float w = xdim(), h = ydim(), x = xpos(), y = ypos(); GL11.glBegin(GL11.GL_QUADS); if (fadeVal == -1) GL11.glTexCoord2f(0, 0); else GL11.glTexCoord3f(0, 0, fadeVal); GL11.glVertex2f(x, y + (h / 2)); if (fadeVal == -1) GL11.glTexCoord2f(0, 1); else GL11.glTexCoord3f(0, 1, fadeVal); GL11.glVertex2f(x + (w / 2), y + h); if (fadeVal == -1) GL11.glTexCoord2f(1, 1); else GL11.glTexCoord3f(1, 1, fadeVal); GL11.glVertex2f(x + w, y + (h / 2)); if (fadeVal == -1) GL11.glTexCoord2f(1, 0); else GL11.glTexCoord3f(1, 0, fadeVal); GL11.glVertex2f(x + (w / 2), y); GL11.glEnd(); }
From source file:tk.ivybits.engine.gl.GL.java
License:Open Source License
public static void glTexCoord3f(float a, float b, float c) { GL11.glTexCoord3f(a, b, c); }