Video Events Audio CD-ROM Threads

Video Function List


Introduction Function List Function Reference Examples

extern SDL_Surface *SDL_GetVideoSurface(void);

extern const SDL_VideoInfo *SDL_GetVideoInfo(void);

extern SDL_Rect **SDL_ListModes(SDL_PixelFormat *format);

extern int SDL_VideoModeOK(int width, int height, int bpp);

extern SDL_Surface *SDL_SetVideoMode(int width, int height, int bpp, Uint32 flags);

extern void SDL_UpdateRects(int numrects, SDL_Rect *rects);

extern void SDL_UpdateRect(SDL_Surface *surface, Sint32 x, Sint32 y, Uint32 w, Uint32 h);

extern int SDL_Flip(SDL_Surface *screen);

extern int SDL_SetColors(SDL_Color *colors, int firstcolor, int ncolors);

extern Uint32 SDL_MapRGB(SDL_PixelFormat *format, Uint8 r, Uint8 g, Uint8 b);

extern void SDL_GetRGB(Uint32 pixel, SDL_PixelFormat *fmt, Uint8 *r, Uint8 *g, Uint8 *b)

extern SDL_Surface *SDL_CreateRGBSurface(Uint32 flags, int width, int height, int depth, Uint32 Rmask, Uint32 Gmask, Uint32 Bmask);

extern SDL_Surface *SDL_CreateRGBSurfaceFrom(void *pixels, int width, int height, int depth, int pitch, Uint32 Rmask, Uint32 Gmask, Uint32 Bmask);

extern void SDL_FreeSurface(SDL_Surface *surface);

extern SDL_Surface *SDL_LockSurface(SDL_Surface *surface);

extern void SDL_UnlockSurface(SDL_Surface *surface);

extern SDL_Surface *SDL_LoadBMP(const char *file);

extern int SDL_SaveBMP(SDL_Surface *surface, const char *file);

extern int SDL_SetColorKey(SDL_Surface *surface, Uint32 flag, Uint32 key);

extern int SDL_SetAlpha(SDL_Surface *surface, Uint32 flag, Uint8 alpha);

extern int SDL_SetClipping(SDL_Surface *surface, Uint16 top, Uint16 left, Uint16 bottom, Uint16 right);

extern SDL_Surface *SDL_ConvertSurface(SDL_Surface *src, SDL_PixelFormat *fmt);

extern int SDL_BlitSurface(SDL_Surface *src, SDL_Rect *srcrect,

extern int SDL_FillRect(SDL_Surface *dst, SDL_Rect *dstrect, Uint32 color);

extern SDL_Surface *SDL_DisplayFormat(SDL_Surface *surface);

extern void SDL_UnmapSurface(SDL_Surface *src);

extern void SDL_WM_SetCaption(char *title, char *icon);

extern void SDL_WM_GetCaption(char **title, char **icon);

extern void SDL_WM_SetIcon(SDL_Surface *icon, Uint8 *mask);

extern void SDL_WarpMouse(Uint16 x, Uint16 y);

extern SDL_Cursor *SDL_CreateCursor(Uint8 *data, Uint8 *mask, int w, int h, int hot_x, int hot_y);

extern void SDL_SetCursor(SDL_Cursor *cursor);

extern SDL_Cursor *SDL_GetCursor(void);

extern void SDL_FreeCursor(SDL_Cursor *cursor);

extern int SDL_ShowCursor(int toggle);