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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,83f6fc8b31eceebe X-Google-Attributes: gid103376,public From: "David C. Hoos, Sr." Subject: Re: C struct import Date: 2000/01/27 Message-ID: #1/1 X-Deja-AN: 578263903 Content-Transfer-Encoding: 7bit References: Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-ELN-Date: Thu Jan 27 01:37:30 2000 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.prod.itd.earthlink.net 948965850 158.252.123.229 (Thu, 27 Jan 2000 01:37:30 PST) Organization: Ada95 Press, Inc. MIME-Version: 1.0 NNTP-Posting-Date: Thu, 27 Jan 2000 01:37:30 PST Newsgroups: comp.lang.ada Date: 2000-01-27T00:00:00+00:00 List-Id: What is the declaration of SDL_PixelFormat? Also, anything else in that definition that is not a standard C type is needed. Jan Kroken wrote in message news:vhi3drkqqo7.fsf@grotte.ifi.uio.no... > > I have the following C struct. How can I use this from Ada? > > typedef struct { > Uint32 hw_available :1; /* Flag: Can you create hardware surfaces? */ > Uint32 wm_available :1; /* Flag: Can you talk to a window manager? */ > Uint32 UnusedBits1 :6; > Uint32 UnusedBits2 :1; > Uint32 blit_hw :1; /* Flag: Accelerated blits HW --> HW */ > Uint32 blit_hw_CC :1; /* Flag: Accelerated blits with Colorkey */ > Uint32 blit_hw_A :1; /* Flag: Accelerated blits with Alpha */ > Uint32 blit_sw :1; /* Flag: Accelerated blits SW --> HW */ > Uint32 blit_sw_CC :1; /* Flag: Accelerated blits with Colorkey */ > Uint32 blit_sw_A :1; /* Flag: Accelerated blits with Alpha */ > Uint32 blit_fill :1; /* Flag: Accelerated color fill */ > Uint32 UnusedBits3 :16; > Uint32 video_mem; /* The total amount of video memory (in K) */ > SDL_PixelFormat *vfmt; /* Value: The format of the video surface */ > } SDL_VideoInfo; > > > -- > -jk