forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Can't use glGenBuffers (or any other VBO methods)

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
GlennNZ



Joined: 13 Jan 2007
Posts: 25

PostPosted: Sat Jan 31, 2009 8:56 pm    Post subject: Can't use glGenBuffers (or any other VBO methods) Reply with quote

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
View user's profile Send private message
longjoel



Joined: 29 Jan 2009
Posts: 14

PostPosted: Sun Feb 01, 2009 5:38 am    Post subject: Re: Can't use glGenBuffers (or any other VBO methods) Reply with quote

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
View user's profile Send private message MSN Messenger
GlennNZ



Joined: 13 Jan 2007
Posts: 25

PostPosted: Sun Feb 01, 2009 9:15 am    Post subject: Reply with quote

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
View user's profile Send private message
longjoel



Joined: 29 Jan 2009
Posts: 14

PostPosted: Sun Feb 01, 2009 9:55 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group