1 /* 2 * See Licensing and Copyright notice in naev.h 3 */ 4 5 6 7 #ifndef WGT_IMAGE_H 8 # define WGT_IMAGE_H 9 10 11 #include "font.h" 12 #include "colour.h" 13 14 15 /** 16 * @brief The image widget data 17 */ 18 typedef struct WidgetImageData_{ 19 glTexture* image; /**< Image to display. */ 20 glColour colour; /**< Colour to warp to. */ 21 int border; /**< 1 if widget should have border. */ 22 } WidgetImageData; 23 24 25 /* Required functions. */ 26 void window_addImage( const unsigned int wid, 27 const int x, const int y, /* position */ 28 const int w, const int h, /* dimensions */ 29 char* name, glTexture* image, int border ); /* label and image itself */ 30 31 /* Misc functions. */ 32 void window_modifyImage( const unsigned int wid, 33 char* name, glTexture* image, int w, int h ); 34 void window_imgColour( const unsigned int wid, 35 char* name, const glColour* colour ); 36 glTexture* window_getImage( const unsigned int wid, char* name ); 37 38 39 #endif /* WGT_IMAGE_H */ 40 41