Using OpenGL 1.5 functions
Hi, Im new here. I've recently started to try to learn OpenGL, but I've been having some problems.
I'm trying to use Vertex Buffer Objects, but I can't compile any code that uses glBindBuffers, glGenBuffers and others.
The program I'm trying to compile is just a simple GLUT program. I've included the gl.h, glu.h and glut.h headers, and the OpenGL and GLUT frameworks. It compiles just fine If I don't try to use any of the newer OpenGL functions.
I'm using Xcode 1.5, OS 10.3.9, G5 1.6Ghz, and according to the OpenGL Extensions Viewer program all of OpenGL 1.5 is supported.
So, my question is this; How do get access to the newer functions?
I appreciate any help.
-Ãsgeir Bjarnason
I'm trying to use Vertex Buffer Objects, but I can't compile any code that uses glBindBuffers, glGenBuffers and others.
The program I'm trying to compile is just a simple GLUT program. I've included the gl.h, glu.h and glut.h headers, and the OpenGL and GLUT frameworks. It compiles just fine If I don't try to use any of the newer OpenGL functions.
I'm using Xcode 1.5, OS 10.3.9, G5 1.6Ghz, and according to the OpenGL Extensions Viewer program all of OpenGL 1.5 is supported.
So, my question is this; How do get access to the newer functions?
I appreciate any help.
-Ãsgeir Bjarnason
That's odd, they should work as-is. Could you please post the #include-lines of your source files?
And by the way, welcome here!
And by the way, welcome here!
None of the developer tools that work on 10.3.9 include ARB_vbo stuff in the headers. You'll need to fake up a header yourself, or steal one from somebody on 10.4. Other than that, there is nothing to do; the functions are present in the frameworks for you to link to.
Thanks Fenris and OneSadCookie for replying so quickly.
Anyway, Fenris:
and I just tried to do this:
OneSadCookie:
What do you mean? Should I make extern declarations for all the functions I need, or what?
Anyway, Fenris:
Code:
#include <OpenGL/gl.h>
#include <OpenGL/glu.h>
#include <OpenGL/glext.h>
#include <GLUT/glut.h>and I just tried to do this:
Code:
glGenBuffers(1, &vboIdentifier);OneSadCookie:
What do you mean? Should I make extern declarations for all the functions I need, or what?
The GL headers included in Xcode 2.2 are updated and include all 1.5 functionality. But Xcode 2.2 requires 10.4 or newer.
The VBO #defines you need were posted to the mac-opengl list a while ago.
The VBO #defines you need were posted to the mac-opengl list a while ago.
Thanks Arekkusu. I'll try those declarations.
GLEW is -- as far as I'm concerned -- the one true way. It's portable across linux & windows, too, and makes it very easy to check for availability of an extension at runtime, too.
I got it to work with the file Arekkusu gave me, so I'll just leave it as is for now.
Will investigate GLEW at a later date though. Thanks for all the pointers.
Will investigate GLEW at a later date though. Thanks for all the pointers.
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| New Space Simulator - light speed functions | gooncorp | 3 | 5,213 |
Jan 2, 2013 12:52 AM Last Post: NikG |
|
| Some quick help getting started with certain Carbon functions | zmwworm | 12 | 7,086 |
Jan 10, 2008 01:14 AM Last Post: zmwworm |
|
| Intel Mac -> Many Warnings (deprecated functions) | dave05 | 3 | 3,688 |
Sep 6, 2006 03:19 PM Last Post: aarku |
|
| Arrays or variables containing executable functions | Jones | 4 | 3,808 |
Jun 2, 2006 08:35 AM Last Post: Zekaric |
|
| Struct based functions | Jones | 9 | 4,552 |
May 9, 2006 02:37 PM Last Post: Zekaric |
|

