From: Simon Wright <simon@pushface.org>
Subject: Re: ADA and Open GL
Date: Tue, 09 Aug 2011 15:51:32 +0100
Date: 2011-08-09T15:51:32+01:00 [thread overview]
Message-ID: <m2pqke3aff.fsf@pushface.org> (raw)
In-Reply-To: 4e4144df$0$2573$703f8584@news.kpn.nl
"ldries46" <bertus.dries@planet.nl> writes:
> I do have a program where I have to create an OpenGL window in a
> selected number of cases.
> When compiling I get the error message:
>
> cannot use function "glutCreateWindow" in a procedure call
>
> when I create a function in stead of a procedure I get the same error
> message
The problem is (presumably!) that glutCreateWindow() is a
function. Google shows:
Usage
int glutCreateWindow(char *name);
name
ASCII character string for use as window name.
[...]
The value returned is a unique small integer identifier for the
window. The range of allocated identifiers starts at one. This window
identifier can be used when calling glutSetWindow.
So, if you don't want the identifier, say something like
declare
dummy : integer;
pragma unreferenced (dummy);
begin
dummy := glutCreateWindow( pwin );
end;
next prev parent reply other threads:[~2011-08-09 14:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-09 14:31 ADA and Open GL ldries46
2011-08-09 14:48 ` Georg Bauhaus
2011-08-09 14:51 ` Simon Wright [this message]
2011-08-10 8:58 ` ldries46
2011-08-10 11:09 ` Simon Wright
2011-08-10 13:23 ` ldries46
2011-08-10 15:35 ` Simon Wright
-- strict thread matches above, loose matches on Subject: below --
2011-08-10 14:24 ldries46
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox