Critical: OpenGL API access in linux
-
- Addict
- Posts: 1648
- Joined: Mon Sep 20, 2004 3:52 pm
- Contact:
Critical: OpenGL API access in linux
I had no idea that the OpenGL api was not available in linux pb. Its pretty ridiculus.
Please fred. Get this in ASAP.
No Sprite3d, no OpenGL... what am I supposed to use?
Please fred. Get this in ASAP.
No Sprite3d, no OpenGL... what am I supposed to use?
On Windows, he's using the Windows API, he could also have used GTK and SDL but he (hopefully) haven't done it (i wouldn't be using it if he had so)
On Linux, he is using GTK and SDL, instead of using Linux API and OpenGL. Which require to install third parties .so libraries.
That's why I don't really like the linux version. Hopefully, according to what i've seen, he won't do this mistake on the mac version
On Linux, he is using GTK and SDL, instead of using Linux API and OpenGL. Which require to install third parties .so libraries.
That's why I don't really like the linux version. Hopefully, according to what i've seen, he won't do this mistake on the mac version

-
- Addict
- Posts: 1648
- Joined: Mon Sep 20, 2004 3:52 pm
- Contact:
-
- Addict
- Posts: 1648
- Joined: Mon Sep 20, 2004 3:52 pm
- Contact:
-
- Addict
- Posts: 1648
- Joined: Mon Sep 20, 2004 3:52 pm
- Contact:
-
- Addict
- Posts: 1648
- Joined: Mon Sep 20, 2004 3:52 pm
- Contact:
-
- Addict
- Posts: 1648
- Joined: Mon Sep 20, 2004 3:52 pm
- Contact:
I'm still considering just using SDL in C++ though. I guess I'll have to try out both in pb and C++ before i decide which to go with. Theres benefits to both. Have you tried creating a separate PB window using the native pb commands and gadgets? I want a main game window and then a normal window with buttons and readouts, etc...
You shouldn't use sdl
I hate third parties libraries 
Anyway, I still don't manage to do OpenGL on GTK Windows...
What I'm nearly sure is that OpenWindow PB's command return GTK handle, and not the API handle... It seems to get the XWindow handle of the PB's window we should just do PeekL(WindowID()+8)... But it's not working for OpenGL it seems....
I just think it's not possible to do OpenGL with a "normal" GTK window...
I hate GTK more and more now


Anyway, I still don't manage to do OpenGL on GTK Windows...
What I'm nearly sure is that OpenWindow PB's command return GTK handle, and not the API handle... It seems to get the XWindow handle of the PB's window we should just do PeekL(WindowID()+8)... But it's not working for OpenGL it seems....
I just think it's not possible to do OpenGL with a "normal" GTK window...
I hate GTK more and more now

Could you test this :
http://gtnsoft.free.fr/OpenGL
You should see a black window for exactly 2 seconds
Done with Purebasic, but unfortunately... It's an XWindow, so there's not way to handle Window events (well, not with the PB's functions...)
Why Fred has choosen GTK

http://gtnsoft.free.fr/OpenGL
You should see a black window for exactly 2 seconds

Done with Purebasic, but unfortunately... It's an XWindow, so there's not way to handle Window events (well, not with the PB's functions...)
Why Fred has choosen GTK



-
- Addict
- Posts: 1648
- Joined: Mon Sep 20, 2004 3:52 pm
- Contact: