From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!q4g2000yqm.googlegroups.com!not-for-mail From: Vadim Godunko Newsgroups: comp.lang.ada Subject: Re: OpenGL and QtAda 3.1 Date: Thu, 14 Jan 2010 01:00:46 -0800 (PST) Organization: http://groups.google.com Message-ID: <9399ec84-91c4-4e05-a389-06f95ed6a6d9@q4g2000yqm.googlegroups.com> References: <916b0968-0014-4fcd-b7b1-69ade4288dac@p24g2000yqm.googlegroups.com> NNTP-Posting-Host: 212.99.106.127 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1263459647 26255 127.0.0.1 (14 Jan 2010 09:00:47 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 14 Jan 2010 09:00:47 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: q4g2000yqm.googlegroups.com; posting-host=212.99.106.127; posting-account=niG3UgoAAAD7iQ3takWjEn_gw6D9X3ww User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.6) Gecko/20091201 SUSE/3.5.6-1.1.1 Firefox/3.5.6,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:8740 Date: 2010-01-14T01:00:46-08:00 List-Id: On Jan 13, 9:40=A0pm, Alexis wrote: > > I'm interested in using OpenGL with QtAda on Windows and GNAT 2009. So > far I have managed to subclass a Q_GL_Widget, but OpenGL support seems > to be lacking, thus I cannot call any glXXX functions like > glClearColor. > > In the past I have managed to use OpenGL with Ada using the Win32 > bindings in Win32Ada, but I'd like to do it in a "proper" and portable > way for Qt. From checking the MSVC version it seems that Qt in Windows > falls back to whatever native OpenGL implementation it can find on the > machine. I guess this is what we should do in QtAda? > OpenGL is portable by its nature, except the interface with underling OS/window system. Qt just fill this hole and provide portable way to construct OpenGL window and handle events. Thus, you still need to use some OpenGL binding to access to portable part of OpenGL API.