Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

ASCII a stupid question, you get an EBCDIC answer.


devel / comp.lang.ada / Status of openGL support in GtkAda.

SubjectAuthor
* Status of openGL support in GtkAda.Rod Kay
`* Re: Status of openGL support in GtkAda.Vadim Godunko
 +- Re: Status of openGL support in GtkAda.Rod Kay
 +- Re: Status of openGL support in GtkAda.Rod Kay
 +* Re: Status of openGL support in GtkAda.Rod Kay
 |`- Re: Status of openGL support in GtkAda.Rod Kay
 `- Re: Status of openGL support in GtkAda.Rod Kay

1
Status of openGL support in GtkAda.

<uegvba$3e3of$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=10087&group=comp.lang.ada#10087

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rodakay5@gmail.com (Rod Kay)
Newsgroups: comp.lang.ada
Subject: Status of openGL support in GtkAda.
Date: Thu, 21 Sep 2023 18:38:02 +1000
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <uegvba$3e3of$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 21 Sep 2023 08:36:58 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="02c70df4d284c94bc89e2e3f3559804c";
logging-data="3608335"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+3JEZDOKsu5OgR+pJ6wh/GxhXjKHU4Tyk="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:xovmxJKVPFX820QGeGpkXuB1m8A=
Content-Language: en-US
 by: Rod Kay - Thu, 21 Sep 2023 08:38 UTC

Hello.all,

Has anyone had any success using openGL in GtkAda ?

I tried a quick test today and although the 'Gtk.GLArea' and
'Gdk.GLContext' packages are present, I was unable to get a GL context.

Also, the testgtk program has no openGL demo, as it used to have.

I used openGL/GtkAda to good effect many years ago. Has openGL
support then been dropped completely ?

I recall there was a Gtk3 bug related to openGL and thought that
might possibly be the reason why it is absent in GtkAda. Does GtkAda use
Gtk4, yet ?

I'm quite keen to try my hand at game programming (and have
developed an Ada game engine library), so any advice/info would be
greatly appreciated.

Regards.

Re: Status of openGL support in GtkAda.

<ca0fd6b5-b779-4903-b39a-bad8dacb9975n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=10165&group=comp.lang.ada#10165

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a05:620a:198d:b0:774:feb:2628 with SMTP id bm13-20020a05620a198d00b007740feb2628mr190390qkb.13.1696236257470;
Mon, 02 Oct 2023 01:44:17 -0700 (PDT)
X-Received: by 2002:a05:6870:1a89:b0:1e0:fa9f:1536 with SMTP id
ef9-20020a0568701a8900b001e0fa9f1536mr4535434oab.3.1696236257179; Mon, 02 Oct
2023 01:44:17 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Mon, 2 Oct 2023 01:44:16 -0700 (PDT)
In-Reply-To: <uegvba$3e3of$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=31.146.150.216; posting-account=niG3UgoAAAD7iQ3takWjEn_gw6D9X3ww
NNTP-Posting-Host: 31.146.150.216
References: <uegvba$3e3of$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ca0fd6b5-b779-4903-b39a-bad8dacb9975n@googlegroups.com>
Subject: Re: Status of openGL support in GtkAda.
From: vgodunko@gmail.com (Vadim Godunko)
Injection-Date: Mon, 02 Oct 2023 08:44:17 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2204
 by: Vadim Godunko - Mon, 2 Oct 2023 08:44 UTC

On Thursday, September 21, 2023 at 12:37:02 PM UTC+4, Rod Kay wrote:
>
> Has anyone had any success using openGL in GtkAda ?
>
> I tried a quick test today and although the 'Gtk.GLArea' and
> 'Gdk.GLContext' packages are present, I was unable to get a GL context.
>
> Also, the testgtk program has no openGL demo, as it used to have.
>
> I used openGL/GtkAda to good effect many years ago. Has openGL
> support then been dropped completely ?
>
> I recall there was a Gtk3 bug related to openGL and thought that
> might possibly be the reason why it is absent in GtkAda. Does GtkAda use
> Gtk4, yet ?
>
> I'm quite keen to try my hand at game programming (and have
> developed an Ada game engine library), so any advice/info would be
> greatly appreciated.
>
Rod,

GtkAda is binding for Gtk+ 3.24.x version, it doesn't support Gtk 4.

GtkAda doesn't provide OpenGL API binding, but supports OpenGL. There is no example in testgtk for this reason - it requires OpenGL API binding.

Re: Status of openGL support in GtkAda.

<uhns4u$cu05$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=10229&group=comp.lang.ada#10229

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rodakay5@gmail.com (Rod Kay)
Newsgroups: comp.lang.ada
Subject: Re: Status of openGL support in GtkAda.
Date: Mon, 30 Oct 2023 20:15:27 +1100
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <uhns4u$cu05$1@dont-email.me>
References: <uegvba$3e3of$1@dont-email.me>
<ca0fd6b5-b779-4903-b39a-bad8dacb9975n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 30 Oct 2023 09:14:06 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c3961c32b53087866f93c3bf4cab0e9c";
logging-data="423941"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18qKVEAHdxIWao7hoZsjF6YAEaJ8CsAkuo="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:QLtVT5nE+odo2CYZB3h3vKVHD6o=
Content-Language: en-US
In-Reply-To: <ca0fd6b5-b779-4903-b39a-bad8dacb9975n@googlegroups.com>
 by: Rod Kay - Mon, 30 Oct 2023 09:15 UTC

On 2/10/23 19:44, Vadim Godunko wrote:
>>
>
> GtkAda is binding for Gtk+ 3.24.x version, it doesn't support Gtk 4.
>
> GtkAda doesn't provide OpenGL API binding, but supports OpenGL. There is no example in testgtk for this reason - it requires OpenGL API binding.

I'm very happy to report that openGL support in gtkada works fine. I
made a simple blunder in my initial test (not attaching the gl_Area
widget to my main window widget *sigh* :) ).

It is also possible to use an openGL engine (ie a renderer in it's
own ada task) with gtakada. A simple protected object to prevent mutual
access between the gtkada task (main environment task) and the openGL
engine task, is all that was required.

*Thank* you Vadim for letting me know that the openGL support is there.

Now, onto my game ! ... :D

"The game is afoot!"

Regards.

P.S. Would anyone know if gtkada might be 'upgraded' to support gtk4 ?
Just curious (gtk3 is fine for my purposes).

Re: Status of openGL support in GtkAda.

<uhnt8q$d3v6$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=10230&group=comp.lang.ada#10230

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rodakay5@gmail.com (Rod Kay)
Newsgroups: comp.lang.ada
Subject: Re: Status of openGL support in GtkAda.
Date: Mon, 30 Oct 2023 20:34:35 +1100
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <uhnt8q$d3v6$1@dont-email.me>
References: <uegvba$3e3of$1@dont-email.me>
<ca0fd6b5-b779-4903-b39a-bad8dacb9975n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 30 Oct 2023 09:33:14 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c3961c32b53087866f93c3bf4cab0e9c";
logging-data="430054"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/V8i3+8wNgN9aN+O7otC8AmFpcdNDqRz4="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:1rM80NMLFiDo1pvHiX0SqbIJgRw=
Content-Language: en-US
In-Reply-To: <ca0fd6b5-b779-4903-b39a-bad8dacb9975n@googlegroups.com>
 by: Rod Kay - Mon, 30 Oct 2023 09:34 UTC

On 2/10/23 19:44, Vadim Godunko wrote:
>>
>
> GtkAda is binding for Gtk+ 3.24.x version, it doesn't support Gtk 4.
>
> GtkAda doesn't provide OpenGL API binding, but supports OpenGL. There is no example in testgtk for this reason - it requires OpenGL API binding.

I'm very happy to report that openGL support in gtkada works fine. I
made a simple blunder in my initial test (not attaching the gl_Area
widget to my main window widget *sigh* :) ).

It is also possible to use an openGL engine (ie a renderer in it's
own ada task) with gtakada. A simple protected object to prevent mutual
access between the gtkada task (main environment task) and the openGL
engine task, is all that was required.

*Thank* you Vadim for letting me know that the openGL support is there.

Now, onto my game ! ... :D

"The game is afoot!"

Regards.

P.S. Would anyone know if gtkada might be 'upgraded' to support gtk4 ?
Just curious (gtk3 is fine for my purposes).

Re: Status of openGL support in GtkAda.

<uhnthg$d4a6$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=10231&group=comp.lang.ada#10231

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rodakay5@gmail.com (Rod Kay)
Newsgroups: comp.lang.ada
Subject: Re: Status of openGL support in GtkAda.
Date: Mon, 30 Oct 2023 20:39:16 +1100
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <uhnthg$d4a6$1@dont-email.me>
References: <uegvba$3e3of$1@dont-email.me>
<ca0fd6b5-b779-4903-b39a-bad8dacb9975n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 30 Oct 2023 09:37:52 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c3961c32b53087866f93c3bf4cab0e9c";
logging-data="430406"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+7RXK8onnnRhDPmVZswgdOCyvRra2oD+Q="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:U9lKpUk11yNH2KeJaEl8LyAPikw=
In-Reply-To: <ca0fd6b5-b779-4903-b39a-bad8dacb9975n@googlegroups.com>
Content-Language: en-US
 by: Rod Kay - Mon, 30 Oct 2023 09:39 UTC

On 2/10/23 19:44, Vadim Godunko wrote:
>>
>
> GtkAda is binding for Gtk+ 3.24.x version, it doesn't support Gtk 4.
>
> GtkAda doesn't provide OpenGL API binding, but supports OpenGL. There
is no example in testgtk for this reason - it requires OpenGL API binding.

I'm very happy to report that openGL support in gtkada works fine. I
made a simple blunder in my initial test (not attaching the gl_Area
widget to my main window widget *sigh* :) ).

It is also possible to use an openGL engine (ie a renderer in it's
own ada task) with gtakada. A simple protected object to prevent mutual
access between the gtkada task (main environment task) and the openGL
engine task, is all that was required.

*Thank* you Vadim for letting me know that the openGL support is there.

Now, onto my game ! ... :D

"The game is afoot!"

Regards.

P.S. Would anyone know if gtkada might be 'upgraded' to support gtk4 ?
Just curious (gtk3 is fine for my purposes).

Re: Status of openGL support in GtkAda.

<uhntpe$d4a7$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=10232&group=comp.lang.ada#10232

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rodakay5@gmail.com (Rod Kay)
Newsgroups: comp.lang.ada
Subject: Re: Status of openGL support in GtkAda.
Date: Mon, 30 Oct 2023 20:43:30 +1100
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <uhntpe$d4a7$1@dont-email.me>
References: <uegvba$3e3of$1@dont-email.me>
<ca0fd6b5-b779-4903-b39a-bad8dacb9975n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 30 Oct 2023 09:42:07 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c3961c32b53087866f93c3bf4cab0e9c";
logging-data="430407"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18k1Z6R3mYDqG50o+R1BkIK+fLLv3L+qDo="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:pp0bV/1yV4QA042saDbHh/mfplc=
In-Reply-To: <ca0fd6b5-b779-4903-b39a-bad8dacb9975n@googlegroups.com>
Content-Language: en-US
 by: Rod Kay - Mon, 30 Oct 2023 09:43 UTC

On 2/10/23 19:44, Vadim Godunko wrote:
>>
>
> GtkAda is binding for Gtk+ 3.24.x version, it doesn't support Gtk 4.
>
> GtkAda doesn't provide OpenGL API binding, but supports OpenGL. There
is no example in testgtk for this reason - it requires OpenGL API binding.

I'm very happy to report that openGL support in gtkada works fine. I
made a simple blunder in my initial test (not attaching the gl_Area
widget to my main window widget *sigh* :) ).

It is also possible to use an openGL engine (ie a renderer in it's
own ada task) with gtkada. A simple protected object to prevent mutual
access between the gtkada task (main environment task) and the openGL
engine task, is all that was required.

*Thank* you Vadim for letting me know that the openGL support is there.

Now, onto my game ! ... :D

"The game is afoot!"

Regards.

P.S. Would anyone know if gtkada might be 'upgraded' to support gtk4 ?
Just curious (gtk3 is fine for my purposes).

Re: Status of openGL support in GtkAda.

<uho1uc$ds3l$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=10233&group=comp.lang.ada#10233

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rodakay5@gmail.com (Rod Kay)
Newsgroups: comp.lang.ada
Subject: Re: Status of openGL support in GtkAda.
Date: Mon, 30 Oct 2023 21:54:24 +1100
Organization: A noiseless patient Spider
Lines: 4
Message-ID: <uho1uc$ds3l$1@dont-email.me>
References: <uegvba$3e3of$1@dont-email.me>
<ca0fd6b5-b779-4903-b39a-bad8dacb9975n@googlegroups.com>
<uhnthg$d4a6$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 30 Oct 2023 10:53:01 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c3961c32b53087866f93c3bf4cab0e9c";
logging-data="454773"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+6+3rac1g5JFX1j0LPBV4oPAq4lObNNIA="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:VYOiw548q5RhH5LLg6fcpAW2W/A=
In-Reply-To: <uhnthg$d4a6$1@dont-email.me>
Content-Language: en-US
 by: Rod Kay - Mon, 30 Oct 2023 10:54 UTC

Ugh ... sorry about the multiples.

My reply stalled when sending, so I tried re-sending ... several
times :/.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor