main.o: In function `BuildLists':
/home/Owner/gl/zombie/main.c:53: undefined reference to `glGenLists'
/home/Owner/gl/zombie/main.c:54: undefined reference to `glNewList'
/home/Owner/gl/zombie/main.c:65: undefined reference to `glEndList'
/home/Owner/gl/zombie/main.c:67: undefined reference to `glNewList'
/home/Owner/gl/zombie/main.c:105: undefined reference to `glEndList'
/home/Owner/gl/zombie/main.c:107: undefined reference to `glNewList'
/home/Owner/gl/zombie/main.c:159: undefined reference to `glEndList'
main.o: In function `DrawGLScene':
/home/Owner/gl/zombie/main.c:441: undefined reference to `glCallList'
/home/Owner/gl/zombie/main.c:470: undefined reference to `glCallList'
/home/Owner/gl/zombie/main.c:470: undefined reference to `glCallList'
I am not recieving an implicate declaration because the PSPGL DOES in fact have the List commands, so why would i be getting this? I have the gl/gl.h included, is there a special lib (gl/-lgl?)? Here is my makefile:
Display lists are not supported. There is some non-functioning vestigial support. I'm still unsure whether they can be made to work in a sufficiently efficient and lightweight way.
source : pspgl homepage.
So, you'll get nothing. Blank screen. I already try that.
sg57 wrote: because the PSPGL DOES in fact have the List commands
No - PSPGL does NOT have List commands. Why not bother checking the documentation and the source code next time. glNewList, glEndList, and glCallList are declared but have _no_ definitions in the pspgl source code. glGenLists has a definition, but it is commented out in the Makefile. Not only that, but the documentation specifically says ( as mentioned about ), that display lists aren't supported.
I had read the homepage of PSPGL but i didnt see that. And i had seen the header file and it does have the list commands, but if there not defined in the C source, then ya it wont work...
Oh well, do you guys know of anyway to converta list into something that will still work as one? Because lists seem like the only way ill be being able to do this.
Sorry for all the questions :-\
EDIT
Ill take a crack at it, but whatever was in my lists should be placed into seperate functions for each new list in it, as if in a sort of manual list? Ill try it now...
Depends on what you're trying to do. For instance, in my font rendering code ( a common place for display lists), I generate a vertex array to store the required vertices and texcorrdinates for the text string - you only need to do this once for the string. Then you just need to do a glDrawArrays() on it to display it each frame. Almost easier then calling the individual display lists over and over per frame.