Linux API & OpenGL

Linux specific forum
Akuma no Houkon
User
User
Posts: 77
Joined: Sun Nov 02, 2003 1:47 pm
Location: Washington
Contact:

Linux API & OpenGL

Post 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.
AMD 2600+, nVidia Geforce FX 5200 128 MB DDR, 512 DDR, RedHat 9
Akuma no Houkon
User
User
Posts: 77
Joined: Sun Nov 02, 2003 1:47 pm
Location: Washington
Contact:

Post 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.
AMD 2600+, nVidia Geforce FX 5200 128 MB DDR, 512 DDR, RedHat 9
Fred
Administrator
Administrator
Posts: 16686
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

You can use the OpenLibrary()/CallCFunction() function combo to do that.
Akuma no Houkon
User
User
Posts: 77
Joined: Sun Nov 02, 2003 1:47 pm
Location: Washington
Contact:

Post 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?
AMD 2600+, nVidia Geforce FX 5200 128 MB DDR, 512 DDR, RedHat 9
Fred
Administrator
Administrator
Posts: 16686
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

it's probably 'GL.so' and then all the normal gl commands.
Akuma no Houkon
User
User
Posts: 77
Joined: Sun Nov 02, 2003 1:47 pm
Location: Washington
Contact:

Post 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?
AMD 2600+, nVidia Geforce FX 5200 128 MB DDR, 512 DDR, RedHat 9
Post Reply