Page 1 of 1

[Implemented] Opengl in Linux

Posted: Tue May 24, 2005 8:18 pm
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.

Re: Opengl in Linux

Posted: Wed May 25, 2005 9:20 am
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.

Re: Opengl in Linux

Posted: Wed May 25, 2005 12:04 pm
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 :)

Re: Opengl in Linux

Posted: Wed May 25, 2005 4:26 pm
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

Posted: Wed May 25, 2005 4:30 pm
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 :)

Posted: Wed May 25, 2005 4:32 pm
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.

Posted: Wed May 25, 2005 4:35 pm
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...

Posted: Wed May 25, 2005 9:13 pm
by dracflamloc
Sounds like it'd be good to have. Def should work with pb windows though...

Posted: Wed May 25, 2005 9:17 pm
by Polo
dracflamloc wrote:Sounds like it'd be good to have. Def should work with pb windows though...
Yeah, please, Fred :twisted: :P

Posted: Wed May 25, 2005 9:38 pm
by Fred
I will take a look when the OpenGL subsystem will be ported on Linux.