From: "David C. Hoos, Sr." <david.c.hoos.sr@ada95.com>
Subject: Re: C struct import
Date: 2000/01/27
Date: 2000-01-27T00:00:00+00:00 [thread overview]
Message-ID: <ulUj4.303$Sa2.14597@newsread2.prod.itd.earthlink.net> (raw)
In-Reply-To: vhi3drkqqo7.fsf@grotte.ifi.uio.no
What is the declaration of SDL_PixelFormat?
Also, anything else in that definition that is not a standard
C type is needed.
Jan Kroken <jankr@nntp.ifi.uio.no> 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
next prev parent reply other threads:[~2000-01-27 0:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <vhi3drkqqo7.fsf@grotte.ifi.uio.no>
2000-01-27 0:00 ` C struct import tmoran
2000-01-27 0:00 ` David C. Hoos, Sr. [this message]
[not found] ` <vhi1z73r5cc.fsf@grotte.ifi.uio.no>
2000-01-30 0:00 ` Mario Klebsch
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox