27#ifdef SDL2_PLAIN_INCLUDE
63#define load_gui_surface(_spr_, _struct_, _surf_, _tag_) \
65 _spr_ = theme_lookup_sprite_tag_alt(active_theme, LOG_FATAL, \
67 fc_assert_action(_spr_ != NULL, break); \
68 _struct_->_surf_ = GET_SURF_REAL(_spr_); \
71#define load_theme_surface(spr, surf, tag) \
72 load_gui_surface(spr, current_theme, surf, tag)
74#define load_city_icon_surface(spr, surf, tag) \
75 load_gui_surface(spr, icons, surf, tag)
77#define load_order_theme_surface(spr, surf, tag) \
78 load_gui_surface(spr, current_theme, surf, tag);
139 "theme.city",
"",
"",
"");
391 0 , 0, surf->w - 1, surf->h - 1,
SDL_Color * get_theme_color(enum theme_color themecolor)
SDL_Color * get_game_color(enum color_std stdcolor)
SDL_Surface * resize_surface(const SDL_Surface *psrc, Uint16 new_width, Uint16 new_height, int smooth)
int main_window_width(void)
void create_line(SDL_Surface *dest, Sint16 x0, Sint16 y0, Sint16 x1, Sint16 y1, SDL_Color *pcolor)
SDL_Surface * copy_surface(SDL_Surface *src)
SDL_Surface * crop_rect_from_surface(SDL_Surface *psource, SDL_Rect *prect)
int alphablit(SDL_Surface *src, SDL_Rect *srcrect, SDL_Surface *dst, SDL_Rect *dstrect, unsigned char alpha_mod)
struct sdl2_data main_data
int blit_entire_src(SDL_Surface *psrc, SDL_Surface *pdest, Sint16 dest_x, Sint16 dest_y)
SDL_Surface * create_surf(int width, int height, Uint32 flags)
void create_frame(SDL_Surface *dest, Sint16 left, Sint16 top, Sint16 width, Sint16 height, SDL_Color *pcolor)
int main_window_height(void)
#define map_rgba(format, color)
utf8_str * copy_chars_to_utf8_str(utf8_str *pstr, const char *pchars)
SDL_Surface * create_text_surf_from_utf8(utf8_str *pstr)
#define FREEUTF8STR(pstr)
#define create_utf8_from_char_fonto(string_in, fonto)
void setup_auxiliary_tech_icons(void)
#define load_city_icon_surface(spr, surf, tag)
struct theme_icons * current_theme
void tilespec_setup_city_gfx(void)
static SDL_Surface * neutral_tech_icon
#define load_order_theme_surface(spr, surf, tag)
static void reload_small_citizens_icons(int style)
SDL_Color * get_tech_color(Tech_type_id tech_id)
void draw_intro_gfx(void)
static SDL_Surface * none_tech_icon
void tilespec_free_city_icons(void)
void tilespec_setup_theme(void)
void tilespec_free_city_gfx(void)
static SDL_Surface * city_surf
static SDL_Surface * future_tech_icon
void tilespec_setup_city_icons(void)
#define load_theme_surface(spr, surf, tag)
void tilespec_free_theme(void)
SDL_Surface * get_tech_icon(Tech_type_id tech)
void reload_citizens_icons(int style)
SDL_Surface * get_city_gfx(void)
void free_auxiliary_tech_icons(void)
static SDL_Surface * get_citizen_surface(enum citizen_category type, int citizen_index)
#define GET_SURF(m_sprite)
#define GET_SURF_REAL(m_sprite)
SDL_Surface * theme_get_background(const struct theme *t, enum theme_background background)
@ COLOR_THEME_CITYREP_FRAME
@ COLOR_THEME_SCIENCEDLG_FRAME
struct sprite * theme_lookup_sprite_tag_alt(struct theme *t, enum log_level level, const char *tag, const char *alt, const char *what, const char *name)
struct theme * active_theme
#define fc_assert(condition)
#define fc_calloc(n, esz)
struct research * research_get(const struct player *pplayer)
enum tech_state research_invention_state(const struct research *presearch, Tech_type_id tech)
bool research_invention_gettable(const struct research *presearch, const Tech_type_id tech, bool allow_holes)
Specialist_type_id specialist_count(void)
SDL_Surface * big_trade_corr
SDL_Surface * big_shield_corr
SDL_Surface * female_angry
SDL_Surface * specialists[SP_MAX]
SDL_Surface * female_happy
SDL_Surface * female_content
SDL_Surface * big_coin_upkeep
SDL_Surface * female_unhappy
SDL_Surface * male_unhappy
SDL_Surface * male_content
SDL_Surface * big_coin_corr
SDL_Surface * big_food_corr
SDL_Surface * big_food_surplus
SDL_Surface * big_shield_surplus
struct sprite * get_tech_sprite(const struct tileset *t, Tech_type_id tech)