comp.lang.ada
 help / color / mirror / Atom feed
From: Gautier write-only <gautier_niouzes@hotmail.com>
Subject: Re: OpenGL and QtAda 3.1
Date: Thu, 14 Jan 2010 07:05:34 -0800 (PST)
Date: 2010-01-14T07:05:34-08:00	[thread overview]
Message-ID: <6344d56b-1e1d-4a6a-acaf-de23d3a6292a@d20g2000yqh.googlegroups.com> (raw)
In-Reply-To: 9399ec84-91c4-4e05-a389-06f95ed6a6d9@q4g2000yqm.googlegroups.com

On 14 Jan., 10:00, Vadim Godunko <vgodu...@gmail.com> wrote:
> On Jan 13, 9:40 pm, Alexis <jose_alexis_paez_thurg...@hotmail.com>
> 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/




  reply	other threads:[~2010-01-14 15:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-13 20:40 OpenGL and QtAda 3.1 Alexis
2010-01-14  9:00 ` Vadim Godunko
2010-01-14 15:05   ` Gautier write-only [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-01-13 20:39 Alexis
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox