| View previous topic :: View next topic |
| Author |
Message |
GlennNZ
Joined: 13 Jan 2007 Posts: 25
|
Posted: Sat Jan 31, 2009 8:56 pm Post subject: Can't use glGenBuffers (or any other VBO methods) |
|
|
I'm trying to convert some of my vertex arrays to vertex buffer objects (using pspgl), but my compiler doesn't want to know.
| Quote: | src/Model.cpp:863: error: ‘glGenBuffers’ was not declared in this scope
src/Model.cpp:864: error: ‘glBindBuffer’ was not declared in this scope
src/Model.cpp:865: error: ‘glBufferData’ was not declared in this scope
|
* I've included gl.h and glext.h
* My makefile has -lGL, -lGLES and -lGU
* I noticed the pspgl is still at revision 2452 but just to make sure, I reinstalled pspgl
* All my vertex array stuff works fine.
* Tried using glGenBufferARB
I'm pretty stumped. From looking at the pspgl website and noticing the three other threads that talk about use of VBOs, I'm assuming this is supposed to be straight forward.
Can anyone offer me any insight?
Cheers |
|
| Back to top |
|
 |
longjoel
Joined: 29 Jan 2009 Posts: 14
|
Posted: Sun Feb 01, 2009 5:38 am Post subject: Re: Can't use glGenBuffers (or any other VBO methods) |
|
|
| GlennNZ wrote: | I'm trying to convert some of my vertex arrays to vertex buffer objects (using pspgl), but my compiler doesn't want to know.
| Quote: | src/Model.cpp:863: error: ‘glGenBuffers’ was not declared in this scope
src/Model.cpp:864: error: ‘glBindBuffer’ was not declared in this scope
src/Model.cpp:865: error: ‘glBufferData’ was not declared in this scope
|
* I've included gl.h and glext.h
* My makefile has -lGL, -lGLES and -lGU
* I noticed the pspgl is still at revision 2452 but just to make sure, I reinstalled pspgl
* All my vertex array stuff works fine.
* Tried using glGenBufferARB
I'm pretty stumped. From looking at the pspgl website and noticing the three other threads that talk about use of VBOs, I'm assuming this is supposed to be straight forward.
Can anyone offer me any insight?
Cheers |
I don't have any advice to offer, but if you can figure this out, I would be interested in hearing what you figure out. When I start my next project, I would like to use buffers as well. |
|
| Back to top |
|
 |
GlennNZ
Joined: 13 Jan 2007 Posts: 25
|
Posted: Sun Feb 01, 2009 9:15 am Post subject: |
|
|
Thanks to my programming colleague, I have a solution.
| Code: | | #define GL_GLEXT_PROTOTYPES | ...is required before including the glext header.
If I'd looked more carefully at the glext.h file, there is the line
| Code: | | #ifdef GL_GLEXT_PROTOTYPES |
Lesson learned (perhaps) |
|
| Back to top |
|
 |
longjoel
Joined: 29 Jan 2009 Posts: 14
|
Posted: Sun Feb 01, 2009 9:55 am Post subject: |
|
|
| GlennNZ wrote: | Thanks to my programming colleague, I have a solution.
| Code: | | #define GL_GLEXT_PROTOTYPES | ...is required before including the glext header.
If I'd looked more carefully at the glext.h file, there is the line
| Code: | | #ifdef GL_GLEXT_PROTOTYPES |
Lesson learned (perhaps) |
Thanks a bunch. |
|
| Back to top |
|
 |
|