GLX Functions

Linux specific forum
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

GLX Functions

Post by Polo »

How can i call these function ?
I don't find out the library name of it :(
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post by Polo »

forget, i've found :wink:
Fred
Administrator
Administrator
Posts: 16686
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

May be you can post the answer, if someone else want to do the same thing ;)
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post by Polo »

you 'll need to call from these libs :

OpenLibrary(#PB_Any,"libX11.so")
OpenLibrary(#PB_Any,"libXxf86vm.so")

BTW, do you know from where the command DefaultScreen come from ? It's an api one, but i don't know which one :)
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post by Polo »

Nobody knows ?
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post by Polo »

ok, j'ai trouvé ça dans X11/xlib.h

#define DefaultScreen(dpy) (((_XPrivDisplay)dpy)->default_screen)

Euh... ça veut dire que c'est pas vraiment une commande ??? Comment je peux l'appeler sous pure ?
Si seulement linux avait été fait plus simple :)
KarLKoX
Enthusiast
Enthusiast
Posts: 677
Joined: Mon Oct 06, 2003 7:13 pm
Location: France
Contact:

Post by KarLKoX »

You will have to convert the XPrivDisplay structure to the purebasic equivalent.

Code: Select all

Procedure.l DefaultScreen(*dpy.XPrivDisplay)
   ProcedureReturn *dpy\default_screen
EndProcedure
Btw, don't forget that you are in a english forum ;)
"Qui baise trop bouffe un poil." P. Desproges

http://karlkox.blogspot.com/
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post by Polo »

Yes i think i've forgotten ;)
In fact, we can just use XDefaultScreen, I've discovered there was an equivalent in a function :)
KarLKoX
Enthusiast
Enthusiast
Posts: 677
Joined: Mon Oct 06, 2003 7:13 pm
Location: France
Contact:

Post by KarLKoX »

Sweet :D
"Qui baise trop bouffe un poil." P. Desproges

http://karlkox.blogspot.com/
Post Reply