1 /* Public domain */ 2 3 #ifndef _AGAR_GUI_ICONMGR_H_ 4 #define _AGAR_GUI_ICONMGR_H_ 5 #include <agar/gui/begin.h> 6 7 /* Description of icon stored in data segment. */ 8 typedef struct ag_static_icon { 9 Uint w, h; /* Dimensions in pixels */ 10 Uint32 Rmask; /* Red mask */ 11 Uint32 Gmask; /* Green mask */ 12 Uint32 Bmask; /* Blue mask */ 13 Uint32 Amask; /* Alpha mask */ 14 const Uint32 *data; /* Pixel data */ 15 AG_Surface *s; /* Initialized surface */ 16 } AG_StaticIcon; 17 18 __BEGIN_DECLS 19 void AG_InitStaticIcon(AG_StaticIcon *); 20 void AG_FreeStaticIcon(AG_StaticIcon *); 21 __END_DECLS 22 23 #include <agar/gui/close.h> 24 #endif /* _AGAR_GUI_ICONMGR_H_ */ 25