LWJGL Forum

Programming => OpenGL => Topic started by: zzzzrrr on June 29, 2009, 20:23:43

Title: Vertex Buffer Object (VBO)
Post by: zzzzrrr on June 29, 2009, 20:23:43
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?
Title: Re: Vertex Buffer Object (VBO)
Post by: Fool Running on July 06, 2009, 14:50:13
Looks like you are maybe missing an 's': ARBVertexBufferObject.glGenBuffersARB(buffer)