[Gambas-user] Is it possible to use a library that uses gb.sdl2 in a graphic project?
Tim Dickson
dickson.tim at googlemail.com
Fri Mar 11 16:27:56 CET 2022
Because sdl does it's own windowing, without a gui. (unless you write
one). It "owns" the window it creates, or full screen. You have to
manually create your own "controls" for SDL/SDL2, rather than the window
being "owned" by GTK or QT.
You need to think of SDL/SDL2 as a third (cross platform) windowing
system that only offers a basic window (form) or fullscreen, without any
widgets, but does give access to device hardware (mice, keyboard,
controllers, audio and graphics) and openGL. the S in SDL is simple,
because there are no widgets, unlike what you find in GTK or QT.
regards, Tim
On 11/03/2022 14:47, Gianluigi wrote:
>
>
> Il giorno ven 11 mar 2022 alle ore 14:07 Gianluigi
> <bagonergi at gmail.com> ha scritto:
>
>
>
> Il giorno ven 11 mar 2022 alle ore 14:04 Benoît Minisini
> <g4mba5 at gmail.com> ha scritto:
>
> Le 11/03/2022 à 13:52, Gianluigi a écrit :
> > Hi Benoit,
> >
> > thanks, imagined this and it is for this reason that I
> separated the use
> > of gb.sdl2 in a library.
> >
> > Can you kindly tell me if my code works for you?
> >
> > Regards
> > Gianluigi
> >
>
> Which code?
>
> The code posted here:
> https://paste.c-net.org/LashedEarplugs
>
>
> Actually my question could also be changed in this way.
> Why in the IDE that is a graphic project that uses QT or GTK you can
> use the sdl2 library but I can't, where am I wrong?
>
> Regards
> Gianluigi
>
> ----[http://gambaswiki.org/wiki/doc/netiquette ]----
--
This email has been checked for viruses by AVG.
https://www.avg.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220311/70b1ff40/attachment.htm>
More information about the User
mailing list