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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,fd0bfdd62007ee88 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!d20g2000yqh.googlegroups.com!not-for-mail From: Gautier write-only Newsgroups: comp.lang.ada Subject: Re: OpenGL and QtAda 3.1 Date: Thu, 14 Jan 2010 07:05:34 -0800 (PST) Organization: http://groups.google.com Message-ID: <6344d56b-1e1d-4a6a-acaf-de23d3a6292a@d20g2000yqh.googlegroups.com> References: <916b0968-0014-4fcd-b7b1-69ade4288dac@p24g2000yqm.googlegroups.com> <9399ec84-91c4-4e05-a389-06f95ed6a6d9@q4g2000yqm.googlegroups.com> NNTP-Posting-Host: 206.122.158.4 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1263481534 10087 127.0.0.1 (14 Jan 2010 15:05:34 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 14 Jan 2010 15:05:34 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: d20g2000yqh.googlegroups.com; posting-host=206.122.158.4; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.38 Safari/532.0,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:8748 Date: 2010-01-14T07:05:34-08:00 List-Id: On 14 Jan., 10:00, Vadim Godunko wrote: > 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. For instance, an (probably, the) OpenGL binding with Ada-like names, types and overloading. You find it under ./bindings (plus I/O facilities in ./src/gl/gl-io.*) in the following project: http://globe3d.sf.net Cheers ______________________________________________________________ Gautier's Ada programming -- http://gautiersblog.blogspot.com/