Lib Problem with DrawList (Help i'm a noob !)

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
Olivier
Posts: 4
Joined: Wed Feb 22, 2006 6:52 am

Lib Problem with DrawList (Help i'm a noob !)

Post by Olivier »

Hi !

I'm quite new to opengl and I'm trying to use display lists but I have an error when I compile :

model.cpp:(.text+0x3334): undefined reference to `glGenLists'
model.cpp:(.text+0x3344): undefined reference to `glNewList'
model.cpp:(.text+0x4a38): undefined reference to `glEndList'

I don't get it. It looks like there is a problem with the opengl lib but everything else works fine.
Here is the line I use in my makefile :
LIBS= -lpng -lglut -lGL -lGLU -lz -lm -lpsprtc -lstdc++

Is there something special about display lists and the PSP ?
I'm using DevKitPro 1.2.7.

Thanks in advance for those who will answer because I'm in the shit ! :)
ufoz
Posts: 86
Joined: Thu Nov 10, 2005 2:36 am
Location: Tokyo
Contact:

Post by ufoz »

pspgl doesn't support display lists yet, iirc...
Olivier
Posts: 4
Joined: Wed Feb 22, 2006 6:52 am

Post by Olivier »

Oki thanks for the news.
So there is no way to use display list on psp for now ?
Olivier
Posts: 4
Joined: Wed Feb 22, 2006 6:52 am

Post by Olivier »

Should I stop using opengl and use sceGu instead ?
is sceGumDrawArray() the sceGu fonction to use kind of display lists ?
How many more question am I going to ask ?

Sorry for asking all that but I don't really know sceGu and I'm just learning how to do some stuff with the PSP :)
LuMo
Posts: 410
Joined: Sun Aug 21, 2005 2:45 am
Location: Austria
Contact:

Post by LuMo »

yes, thats the right function, and you will be asking loads of questions ;D
i am just through all (hopefully!) those (possibly you have seen my 3dbLoader)

greets
lumo
PS: any questions, do not wait, just ask em!
PPS: you can even ask me on msn when i am online.
"Good artists copy, great artists steal."
Pablo Picasso
go2lumo.com
memon
Posts: 63
Joined: Mon Oct 03, 2005 10:51 pm

Post by memon »

Or you can use vertex arrays with pspgl, or better yet VBOs. The varray.c and spot.c in the test folder (in the pspgl folder) should get you started with vertex arrays and VBOs. They should be pretty much the same as they are on PCs, the only difference is that some vertex formats are native in psp, and hence much faster.

Here is more info about pspgl (you propably know that anyway):
http://www.goop.org/psp/gl/
Post Reply