[Gambas-user] How to determine whether a program uses GTK or QT?
Martin
mbelmonte at belmotek.net
Fri Sep 23 23:02:50 CEST 2022
El 23/9/22 a las 21:49, Benoit Minisini escribió:
> If Component.IsLoaded("gb.gtk3") Then
>
> And so on...
ok, perfect, it could be useful.
> I'd like to know which OpenGL methods do not work in GTK+3 (or the
> contrary). Please report!
ok, more or less is
the follow doesn't works in gb.gui (I use manajro xfce, gtk based)
gcd.debuginfo("Shading version: " &
GL.GetString(gl.SHADING_LANGUAGE_VERSION),,, True)
gcd.debuginfo("GL version: " & GL.GetString(gl.VERSION),,, True)
gcd.debuginfo("Chipset vendor: " & GL.GetString(gl.VENDOR),,, True)
so, I "solve" like that:
If Component.IsLoaded("gb.qt5") Then
gcd.debuginfo("Shading version: " &
GL.GetString(gl.SHADING_LANGUAGE_VERSION),,, True)
gcd.debuginfo("GL version: " & GL.GetString(gl.VERSION),,, True)
gcd.debuginfo("Chipset vendor: " & GL.GetString(gl.VENDOR),,, True)
gcd.debuginfo("Extensions" & GL.GetString(gl.EXTENSIONS))
Endif
Regards.
Martin.
More information about the User
mailing list