[SDL] Tux Paint 2002.07.31 released!

nbs nbs at sonic.net
Wed Jul 31 18:24:01 PDT 2002


wow cool (:
----- Original Message -----
From: "Anthony T." <goumba_tony at yahoo.com>
To: <sdl at libsdl.org>
Sent: Monday, July 22, 2002 1:24 PM
Subject: Re: [SDL] :1 ?


> Its a bit field, it means only one bit is allocated to that member
> variable, as opposed to 32.
>
> Atrix Wolfe wrote:
> > im not positive cause i too havent seen that before but i think thats a
> > default value for that member of the struct.
> >
> > ----- Original Message -----
> > From: "Luke J Crook" <lcluke at wsbnet.com>
> > To: <sdl at libsdl.org>
> > Sent: Monday, July 22, 2002 1:02 PM
> > Subject: [SDL] :1 ?
> >
> >
> >
> >>Apologies is this is a general C question, but as I have only ever seen
> >
> > this
> >
> >>used before in SDL I thought I might ask it here. The SDL_VideoInfo
struct
> >>defines variables in the following way...
> >>
> >>Uint32 hw_available :1; /* Flag: Can you create hardware surfaces? */
> >>
> >>...Does the :1 mean that the hw_available variable is defined as a
single
> >>bit ?
> >>
> >>-Luke
> >>
> >>typedef struct {
> >> Uint32 hw_available :1; /* Flag: Can you create hardware surfaces? */
> >> Uint32 wm_available :1; /* Flag: Can you talk to a window manager? */
> >>    ...
> >>} SDL_VideoInfo;
> >>
> >>
> >>_______________________________________________
> >>SDL mailing list
> >>SDL at libsdl.org
> >>http://www.libsdl.org/mailman/listinfo/sdl
>
> --
> Anthony
> Conductor New York City Transit Subdivision B/Queens (EFVGR)
>
>
>
> _______________________________________________
> SDL mailing list
> SDL at libsdl.org
> http://www.libsdl.org/mailman/listinfo/sdl
>





More information about the SDL mailing list