Example usage for org.lwjgl.opengl GL11 glTexCoord3d

List of usage examples for org.lwjgl.opengl GL11 glTexCoord3d

Introduction

In this page you can find the example usage for org.lwjgl.opengl GL11 glTexCoord3d.

Prototype

public static native void glTexCoord3d(@NativeType("GLdouble") double s, @NativeType("GLdouble") double t,
        @NativeType("GLdouble") double r);

Source Link

Document

Double version of #glTexCoord3f TexCoord3f .

Usage

From source file:tk.ivybits.engine.gl.GL.java

License:Open Source License

public static void glTexCoord3d(double a, double b, double c) {
    GL11.glTexCoord3d(a, b, c);
}

From source file:transcend.spare.TessCallback.java

public void vertex(Object vertexData) {
    VertexData vertex = (VertexData) vertexData;

    if (!textured) {
        if (vertex.data.length == 6)
            new Color((float) vertex.data[3], (float) vertex.data[4], (float) vertex.data[5]).bind();
        if (vertex.data.length == 7)
            new Color((float) vertex.data[3], (float) vertex.data[4], (float) vertex.data[5],
                    (float) vertex.data[6]).bind();
    } else {//from w  ww .j  av  a2  s  . c  o m
        if (vertex.data.length == 6)
            GL11.glTexCoord3d((float) vertex.data[3], (float) vertex.data[4], (float) vertex.data[5]);
        else
            GL11.glTexCoord2d((float) vertex.data[3], (float) vertex.data[4]);
    }
    GL11.glVertex3d(vertex.data[0], vertex.data[1], vertex.data[2]);
}