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=-0.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ecb2e25e59be0de6,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-01-29 02:10:08 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!dialin-212-144-131-038.arcor-ip.NET!not-for-mail From: Stefan Soos Newsgroups: comp.lang.ada Subject: AdaSDL and glTexImage2D Date: Wed, 29 Jan 2003 11:09:40 +0100 Message-ID: <49981b.cu.ln@ID-soos.user.dfncis.de> Reply-To: stefan.soos@gmx.de NNTP-Posting-Host: dialin-212-144-131-038.arcor-ip.net (212.144.131.38) X-Trace: fu-berlin.de 1043835006 34049980 212.144.131.38 (16 [16707]) X-Orig-Path: ID-soos.user.dfncis.de!nobody User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:33545 Date: 2003-01-29T11:09:40+01:00 List-Id: Hello, I'm doing some programming in Ada with the thin binding to the SDL library. I'd like to create some textured objects, but there I run into some problems. My texture data is stored in an SDL surface: Image : SDL.Video.Surface_ptr; The actual data can be read from Image.Pixels. Now, I'd like to call glTexImage2D: glTexImage2D (GL_TEXTURE_2D, 0, GLint (GL_RGBA), GLsizei (Width), GLsizei (Height), 0, GL_RGBA, GL_UNSIGNED_BYTE, GLubyte_Array (Image.Pixels)); but this doesn't work. How can I convert Image.Pixels (wich is actually defined as System.Address) to an array of GLubyte? Thanks in advance and bye, Stefan -- include/asm-mips64/unistd.h: /* These are here for sake of fucking lusercode living in the fucking believe having to fuck around with the syscall interface themselfes. */