From: David Holm <david@realityrift.com>
Subject: Re: New Ada binding to OpenGL
Date: Fri, 03 Jan 2003 23:56:22 GMT
Date: 2003-01-03T23:56:22+00:00 [thread overview]
Message-ID: <GqpR9.3960$FF4.246030@newsb.telia.net> (raw)
In-Reply-To: av4lle$c2880$1@ID-76083.news.dfncis.de
Joachim Schr�er wrote:
> Hello,
>
> to pass null simply write something like
> Gl.Glclipplane(Plane => 1, Equation => null);
>
> But why do you want to pass null access values.
>
> I expect some kind of error in the C code then.
>
> I will have a look for books were Ada/C coding is documented.
>
> I thing, the Ada95 rationale is a good reference. I will give you links
> later.
>
> J. Schr�er
>
Yeah, you were correct. I got errors in the C code.
The thing is that for instance, glXCreateContext takes a C NULL pointer when
you want to create a new context that is not a subcontext to an existing
one.
I have not yet managed to find a solution to how to handle this in Ada as I
get a segfault in libGL when I do it (which is odd since I have a C
application that passes a C-NULL here without any problems). In this case I
had an overloaded function which took System.Address, so I never passed a
null through an access variable.
I found the rationale on www.adahome.org, so no need to send a link.
//David Holm
next prev parent reply other threads:[~2003-01-03 23:56 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-28 6:32 New Ada binding to OpenGL David Holm
2002-12-30 20:50 ` Joachim Schr�er
2002-12-30 21:45 ` David Holm
2003-01-08 20:20 ` Brian Gaffney
2003-01-08 23:47 ` David Holm
2003-01-09 9:55 ` Bobby D. Bryant
2003-01-10 18:33 ` Brian Gaffney
2002-12-30 22:51 ` David Holm
2003-01-03 18:38 ` Joachim Schr�er
2003-01-03 23:56 ` David Holm [this message]
[not found] ` <67HR9.4217$gv.98715@newsfep1-gui.server.ntli.net>
2003-01-05 3:21 ` David Holm
2003-01-03 21:57 ` Bobby D. Bryant
2003-01-04 19:11 ` Joachim Schr�er
2002-12-30 20:54 ` Joachim Schr�er
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox