From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5d708145f98f6273 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-04-13 09:02:03 PST From: "Luke Guest" Newsgroups: comp.lang.ada References: <107mgcjspsour11@corp.supernews.com> Subject: Re: Access type conversions, how? Date: Tue, 13 Apr 2004 17:01:35 +0100 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 195.74.122.227 Message-ID: <407c0f2c.0@entanet> X-Trace: 13 Apr 2004 17:02:52 -0100, 195.74.122.227 Path: archiver1.google.com!news1.google.com!news.glorb.com!zen.net.uk!dedekind.zen.co.uk!peernews.manap.net!peer.news.zetnet.net!newsfeed.uk.prserv.net!prserv.net!news.freedom2surf.net!entanet!195.74.122.227 Xref: archiver1.google.com comp.lang.ada:7055 Date: 2004-04-13T17:01:35+01:00 List-Id: "chris" wrote in message news:LnTec.5$094.0@newsfe1-win... > Luke A. Guest wrote: > > Well, I know that! But, I don't want to have different Matrix types > > for different platforms, and that's essentially what that will mean. > > Why not use this? > > type GLMatrix is array (1 .. 15) of GLFloat; > pragma Convention(C, GLMatrix); No. > What do you want to do? Pass an array to a C function or an array of > arrays? Like I said, we have a GL package which is the OpenGL bindings (yeah, all the functions). I want to have an abstraction layer so I can *hide* the details of the 3D API (or whatever I'm using on a particular platform), above my layer, I don't want any other code to know about the lower levels, i.e. it should not reply on GL.GLfloat, simple as that. But as GL bindings use the GL types, I cannot get a pointer to convert to another pointer with the same base types. Luke.