I'm trying to use VBOs in Embarcadero's C++ Builder ( I use C++Builder 12 Athens Community Edition). glGetString(GL_VERSION) returns "4.6.0 - Build 31.0.101.2111", but when I try to use glGenBuffers or glBindBuffer I get an error telling me "call to undefined function".
glGenBuffers and glBindBuffer are OpenGL version 2 functions. Another version 2 function, glDrawElements, is compiling ok.
The difference is that for glDrawElements there is a "WINGDIAPI void APIENTRY ..." declaration in the gl.h file, whereas for there is glGenBuffers not. I added a "WINGDIAPI void APIENTRY ..." declaration for glGenBuffers and it compiles ok then, but the linker shows an unresolved external.
So those functions are not in any library. glDrawElements is in the lib my project is linked with (opengl32.lib). glGenBuffers is not. I'm stuck here and don't know how to get this to work. Maybe there's another lib somewhere that I can use?
If anyone knows a solution I'd be grateful if you let me know.
Thank you,
Karl