include/SDL_video.h
branchSDL-1.3
changeset 1669 9857d21967bb
parent 1668 4da1ee79c9af
child 1670 eef792d31de8
equal deleted inserted replaced
1668:4da1ee79c9af 1669:9857d21967bb
   124 /* typedef for private surface blitting functions */
   124 /* typedef for private surface blitting functions */
   125 typedef int (*SDL_blit) (struct SDL_Surface * src, SDL_Rect * srcrect,
   125 typedef int (*SDL_blit) (struct SDL_Surface * src, SDL_Rect * srcrect,
   126                          struct SDL_Surface * dst, SDL_Rect * dstrect);
   126                          struct SDL_Surface * dst, SDL_Rect * dstrect);
   127 
   127 
   128 
   128 
   129 /* Useful for determining the video hardware capabilities */
   129 /**
       
   130  * \struct SDL_VideoInfo
       
   131  *
       
   132  * \brief Useful for determining the video hardware capabilities
       
   133  */
   130 typedef struct SDL_VideoInfo
   134 typedef struct SDL_VideoInfo
   131 {
   135 {
   132     Uint32 hw_available:1;      /* Flag: Can you create hardware surfaces? */
   136     Uint32 hw_available:1;  /**< Flag: Can you create hardware surfaces? */
   133     Uint32 wm_available:1;      /* Flag: Can you talk to a window manager? */
   137     Uint32 wm_available:1;  /**< Flag: Can you talk to a window manager? */
   134     Uint32 UnusedBits1:6;
   138     Uint32 UnusedBits1:6;
   135     Uint32 UnusedBits2:1;
   139     Uint32 UnusedBits2:1;
   136     Uint32 blit_hw:1;           /* Flag: Accelerated blits HW --> HW */
   140     Uint32 blit_hw:1;       /**< Flag: Accelerated blits HW --> HW */
   137     Uint32 blit_hw_CC:1;        /* Flag: Accelerated blits with Colorkey */
   141     Uint32 blit_hw_CC:1;    /**< Flag: Accelerated blits with Colorkey */
   138     Uint32 blit_hw_A:1;         /* Flag: Accelerated blits with Alpha */
   142     Uint32 blit_hw_A:1;     /**< Flag: Accelerated blits with Alpha */
   139     Uint32 blit_sw:1;           /* Flag: Accelerated blits SW --> HW */
   143     Uint32 blit_sw:1;       /**< Flag: Accelerated blits SW --> HW */
   140     Uint32 blit_sw_CC:1;        /* Flag: Accelerated blits with Colorkey */
   144     Uint32 blit_sw_CC:1;    /**< Flag: Accelerated blits with Colorkey */
   141     Uint32 blit_sw_A:1;         /* Flag: Accelerated blits with Alpha */
   145     Uint32 blit_sw_A:1;     /**< Flag: Accelerated blits with Alpha */
   142     Uint32 blit_fill:1;         /* Flag: Accelerated color fill */
   146     Uint32 blit_fill:1;     /**< Flag: Accelerated color fill */
   143     Uint32 UnusedBits3:16;
   147     Uint32 UnusedBits3:16;
   144     Uint32 video_mem;           /* The total amount of video memory (in K) */
   148     Uint32 video_mem;           /* The total amount of video memory (in K) */
       
   149 
       
   150     /* Here for backwards compatibility */
       
   151     SDL_PixelFormat *vfmt;
   145 } SDL_VideoInfo;
   152 } SDL_VideoInfo;
   146 
   153 
   147 /**
   154 /**
   148  * \struct SDL_DisplayMode
   155  * \struct SDL_DisplayMode
   149  *
   156  *