[Implemented] Opengl in Linux

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

[Implemented] Opengl in Linux

Post by Polo »

Already asked, but all OpenGL commands should be included in Purebasic Linux like in Purebasic Windows, even if they are easy to call.
Also, a way to do opengl on Purebasic linux window would be cool, as it's using gtk and making so hard to make opengl on it...

BTW, according to the website the Linux version is already supporting OpenGL :
There are numerous libraries provided as standard which include : sound, sprite, windows, gadgets, screen, palette, openGL, etc.
DarkDragon
Addict
Addict
Posts: 2345
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Re: Opengl in Linux

Post by DarkDragon »

Polo wrote:Already asked, but all OpenGL commands should be included in Purebasic Linux like in Purebasic Windows, even if they are easy to call.
Also, a way to do opengl on Purebasic linux window would be cool, as it's using gtk and making so hard to make opengl on it...

BTW, according to the website the Linux version is already supporting OpenGL :
There are numerous libraries provided as standard which include : sound, sprite, windows, gadgets, screen, palette, openGL, etc.
Just write the glwrapper lib as include for you. You can easily open the "opengl.so" or whatever it is in linux and call the functions with floats.
bye,
Daniel
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: Opengl in Linux

Post by Polo »

DarkDragon wrote:Just write the glwrapper lib as include for you. You can easily open the "opengl.so" or whatever it is in linux and call the functions with floats.
I've already done it for a few functions, but it's a feature request (not the first time I say that :wink:)
And the good thing in this request is the ability to draw opengl on gtk windows, which is impossible without an external library, it should so be included in Pure too :)
DarkDragon
Addict
Addict
Posts: 2345
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Re: Opengl in Linux

Post by DarkDragon »

Polo wrote:
DarkDragon wrote:Just write the glwrapper lib as include for you. You can easily open the "opengl.so" or whatever it is in linux and call the functions with floats.
I've already done it for a few functions, but it's a feature request (not the first time I say that :wink:)
And the good thing in this request is the ability to draw opengl on gtk windows, which is impossible without an external library, it should so be included in Pure too :)
I have done it for you with AlphaSND:
http://www.bradan.net/downloads/pb_linux_gl.zip
bye,
Daniel
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post by Polo »

This is really nice ! Thanx a lot !
Unfortunately it's using SDL, which I don't want to, but it'll be a lot useful for me anyway !
If someone has an idea in how to do opengl on a window just like in windows, please give it :)
DarkDragon
Addict
Addict
Posts: 2345
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Post by DarkDragon »

Polo wrote:This is really nice ! Thanx a lot !
Unfortunately it's using SDL, which I don't want to, but it'll be a lot useful for me anyway !
If someone has an idea in how to do opengl on a window just like in windows, please give it :)
Without SDL O_o how can you do so? I think you can use glut, but maybe it's using SDL, too.
bye,
Daniel
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post by Polo »

well, we can use it using glx, I got it working, but unfortunately, we have to create a window using linux api functions, and so the event are quite hard to manage.
Since PB's windows on Linux are using gtk, I was looking for a pb implementation of gtkglarea or the other, i don't remember, of course linked statically... That way we could use OpenGL directly on Pb's window easily, and we could use PB's event...
dracflamloc
Addict
Addict
Posts: 1648
Joined: Mon Sep 20, 2004 3:52 pm
Contact:

Post by dracflamloc »

Sounds like it'd be good to have. Def should work with pb windows though...
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post by Polo »

dracflamloc wrote:Sounds like it'd be good to have. Def should work with pb windows though...
Yeah, please, Fred :twisted: :P
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

I will take a look when the OpenGL subsystem will be ported on Linux.
Post Reply