comp.lang.ada
 help / color / mirror / Atom feed
* Access type conversions, how?
@ 2004-04-13  0:32 Luke A. Guest
  2004-04-13  1:25 ` Randy Brukardt
  2004-04-13 14:57 ` zhenglonggen
  0 siblings, 2 replies; 16+ messages in thread
From: Luke A. Guest @ 2004-04-13  0:32 UTC (permalink / raw)


Hi,

We have the following in our GL package:

package C renames Interfaces.C;
...
type GLfloat      is new C.C_float;
...
type GLfloatPtr   is access all GLfloat;
...
procedure glMultMatrixf(M : in GLfloatPtr);

Now, in my code, I've created a Matrix package which has as it's type:

type Object is array(Integer range 0 .. 15) of aliased Float;

Now, I've made it aliased because I want to pass this to glMultMatrixf,
but for some reason I cannot work out exactly how to do it.

I've tried all sorts, like:

GL.glMultMatrixf(M(M'First)'Unchecked_Access); -- Wrong type

I've tried casting it to GL.GLfloat and GL.GLfloatPtr, but nothing's
working. Can anyone help?

Thanks,
Luke.




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

end of thread, other threads:[~2004-04-14 17:37 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-13  0:32 Access type conversions, how? Luke A. Guest
2004-04-13  1:25 ` Randy Brukardt
2004-04-13  8:08   ` Luke A. Guest
2004-04-13 15:11     ` chris
2004-04-13 16:01       ` Luke Guest
2004-04-13 17:54         ` chris
2004-04-13 19:31           ` Luke A. Guest
2004-04-13 22:51             ` Luke A. Guest
2004-04-13 21:59               ` Lutz Donnerhacke
2004-04-14 11:53                 ` Luke Guest
2004-04-14 12:07                   ` Lutz Donnerhacke
2004-04-14 13:36             ` Robert I. Eachus
2004-04-14 17:37               ` Jeffrey Carter
2004-04-13 14:57 ` zhenglonggen
2004-04-14  7:45   ` Martin Dowie
2004-04-14 11:49     ` Luke Guest

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