Page 1 of 1
Linux API & OpenGL
Posted: Mon Nov 03, 2003 9:44 pm
by Akuma no Houkon
Does anyone have or know of a list of linux supported API and their arguments for PureBasic?
Also, does anyone know of or have an include or know how to use OpenGL in the linux version of PureBasic? Its simple enough in the windows version but there are no api docs for the linux version.
Posted: Tue Nov 04, 2003 7:13 pm
by Akuma no Houkon
No takers?
I need to know how to access the OpenGL api via PureBasic (in linux) and if possible a link to documentation or a list of linux API's that work in purebasic.
Posted: Tue Nov 04, 2003 9:58 pm
by Fred
You can use the OpenLibrary()/CallCFunction() function combo to do that.
Posted: Tue Nov 04, 2003 10:09 pm
by Akuma no Houkon
For the OpenGL yeah I know (I do this with fmod and zlib), except I dont know the name of, or where, the opengl32 lib is located on my PC. I have searched high and low.
What about the linux api? the included example file shows malloc only. Is there a list of the linux api that are pre-ready in purebasic?
Posted: Wed Nov 05, 2003 9:42 am
by Fred
it's probably 'GL.so' and then all the normal gl commands.
Posted: Wed Nov 05, 2003 3:09 pm
by Akuma no Houkon
"libGL.so" (case sensative)
The only way I know to initalize OpenGL requires the following API.
ChoosePixelFormat
SetPixelFormat
GetDC
Those are windows API. Does anyone know of Linux Equivlents or maybe even a way to work arround this? Does GLUT have functions that can replace those?