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-Thread: 103376,baa28c83dcb4b216 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news.maxwell.syr.edu!border1.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!Spring.edu.tw!news.nctu.edu.tw!feeder.seed.net.tw!attdv1!attdv2!ip.att.net!newsfeed1.global.lmco.com!svlnews.lmms.lmco.com!not-for-mail From: "Alfredo Macias" Newsgroups: comp.lang.ada Subject: Re: OpenGL Texture mapping Date: Thu, 16 Dec 2004 17:09:04 -0800 Organization: Lockheed Martin Corporation Message-ID: References: <1243716.dEx2WVfu6a@linux1.krischik.com> NNTP-Posting-Host: 134.116.5.79 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Xref: g2news1.google.com comp.lang.ada:7011 Date: 2004-12-16T17:09:04-08:00 List-Id: Sorry for the confusion, I only included what I thought was the most relevant code, but that is just a part of it. Data : Data_Buffer_Type; is actually an incoming parameter to this procedure where I'm trying to do the texture mapping. Which means that Data was originally instantiated by the caller and initialized to values read from a bitmap file, so by the time Data is received by my texture mapping procedure, Data actually contains 256*256 bytes with the bitmap data. (I have output its contents as text and manually verified it for correctness right before my call to Gl.GlTexImage2D). So other than that, does anything else look incorrect? Thank you "Martin Krischik" wrote in message news:1243716.dEx2WVfu6a@linux1.krischik.com... > Alfredo Macias wrote: > > > type Data_Buffer_Type is array (Positive range <>) of aliased > > Data : Data_Buffer_Type; > > An indefinite type without contraint and without initialisation? That does > not work. Read here to find out why: > > http://en.wikibooks.org/wiki/Programming:Ada:Subtypes#indefinite_subtype > > With Regards > > Martin > > -- > mailto://krischik@users.sourceforge.net > http://www.ada.krischik.com