Page 1 of 1
GLX Functions
Posted: Sun Apr 03, 2005 6:39 pm
by Polo
How can i call these function ?
I don't find out the library name of it

Posted: Sun Apr 03, 2005 7:33 pm
by Polo
forget, i've found

Posted: Sun Apr 03, 2005 7:39 pm
by Fred
May be you can post the answer, if someone else want to do the same thing

Posted: Sun Apr 03, 2005 8:01 pm
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

Posted: Mon Apr 04, 2005 4:07 pm
by Polo
Nobody knows ?
Posted: Mon Apr 04, 2005 5:04 pm
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

Posted: Tue Apr 26, 2005 11:00 pm
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

Posted: Wed Apr 27, 2005 9:48 am
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

Posted: Wed Apr 27, 2005 2:45 pm
by KarLKoX
Sweet
