Example usage for org.lwjgl.opengl GL11 glNormalPointer

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

Introduction

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

Prototype

public static void glNormalPointer(@NativeType("GLenum") int type, @NativeType("GLsizei") int stride,
        @NativeType("void const *") FloatBuffer pointer) 

Source Link

Document

Specifies the location and organization of a normal array.

Usage

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

License:Open Source License

public static void glNormalPointer(int a, int b, long c) {
    GL11.glNormalPointer(a, b, c);
}

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

License:Open Source License

public static void glNormalPointer(int a, int b, ByteBuffer c) {
    GL11.glNormalPointer(a, b, c);
}

From source file:zildo.fwk.opengl.compatibility.VBOHardware.java

License:Open Source License

@Override
public void draw(VBOBuffers p_bufs) {
    ARBVertexBufferObject.glBindBufferARB(ARBVertexBufferObject.GL_ARRAY_BUFFER_ARB, p_bufs.vertexBufferId);
    GL11.glVertexPointer(3, GL11.GL_FLOAT, 0, 0);

    ARBVertexBufferObject.glBindBufferARB(ARBVertexBufferObject.GL_ARRAY_BUFFER_ARB, p_bufs.normalBufferId);
    GL11.glNormalPointer(GL11.GL_FLOAT, 0, 0);

    ARBVertexBufferObject.glBindBufferARB(ARBVertexBufferObject.GL_ARRAY_BUFFER_ARB, p_bufs.textureBufferId);
    GL11.glTexCoordPointer(2, GL11.GL_FLOAT, 0, 0);
}