[SDL] :1 ?

Atrix Wolfe Atrix2 at cox.net
Mon Jul 22 13:06:00 PDT 2002


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





More information about the SDL mailing list