comp.lang.ada
 help / color / mirror / Atom feed
* OpenGL and QtAda 3.1
@ 2010-01-13 20:39 Alexis
  0 siblings, 0 replies; 4+ messages in thread
From: Alexis @ 2010-01-13 20:39 UTC (permalink / raw)


Hello,

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?

Or is it just that I've missed something on the way?

Many thanks and best regards, Alexis.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* OpenGL and QtAda 3.1
@ 2010-01-13 20:40 Alexis
  2010-01-14  9:00 ` Vadim Godunko
  0 siblings, 1 reply; 4+ messages in thread
From: Alexis @ 2010-01-13 20:40 UTC (permalink / raw)


Hello,

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?

Or is it just that I've missed something on the way?

Many thanks and best regards, Alexis.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: OpenGL and QtAda 3.1
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Vadim Godunko @ 2010-01-14  9:00 UTC (permalink / raw)


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.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: OpenGL and QtAda 3.1
  2010-01-14  9:00 ` Vadim Godunko
@ 2010-01-14 15:05   ` Gautier write-only
  0 siblings, 0 replies; 4+ messages in thread
From: Gautier write-only @ 2010-01-14 15:05 UTC (permalink / raw)


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/




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-01-14 15:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
  -- strict thread matches above, loose matches on Subject: below --
2010-01-13 20:39 Alexis

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