Vertex Buffer Object (VBO)

Started by zzzzrrr, June 29, 2009, 20:23:43

Previous topic - Next topic

zzzzrrr

Hello,

I'm attempting to implement VBOs, although my compiler keeps complaining:
Quoteerror: value glGenBufferARB is not a member of object org.lwjgl.opengl.ARBVertexBufferObject

I'm following the VBO instructions posted on the wiki:
public static int createVBOID() {
		if (GLContext.getCapabilities().GL_ARB_vertex_buffer_object) {
			IntBuffer buffer = BufferUtils.createIntBuffer(1);
			ARBVertexBufferObject.glGenBuffersARB(buffer);
			return buffer.get(0);
		}
		return 0;
	}


I'm using lwjgl 2.1.0.... Any suggestions?

Fool Running

Looks like you are maybe missing an 's': ARBVertexBufferObject.glGenBuffersARB(buffer)
Programmers will, one day, rule the world... and the world won't notice until its too late.Just testing the marquee option ;D