Freeciv-3.3
Loading...
Searching...
No Matches
Data Fields
sdl2_data Struct Reference

#include <graphics.h>

Data Fields

int rects_count
 
int guis_count
 
SDL_Rect rects [RECT_LIMIT]
 
SDL_Windowscreen
 
SDL_Surfacemap
 
SDL_Surfacedummy
 
SDL_Texturemaintext
 
SDL_Rendererrenderer
 
struct canvas map_canvas
 
struct gui_layergui
 
struct gui_layer ** guis
 
SDL_Event event
 

Detailed Description

Definition at line 205 of file graphics.h.

Field Documentation

◆ dummy

SDL_Surface* sdl2_data::dummy

Definition at line 211 of file graphics.h.

Referenced by init_sdl(), and quit_sdl().

◆ event

SDL_Event sdl2_data::event

Definition at line 217 of file graphics.h.

Referenced by accept_treaty_callback(), act_sel_wait_callback(), activate_and_exit_units_orders_city_dlg_callback(), activate_units_orders_city_dlg_callback(), add_new_worklist_callback(), adv_unit_select_all_callback(), adv_unit_select_callback(), adv_unit_sentry_idle_callback(), advanced_terrain_window_dlg_callback(), apply_callback(), apply_taxrates_callback(), army_city_dlg_callback(), back_callback(), bribe_dlg_window_callback(), buy_prod_city_dlg_callback(), call_meeting_dlg_callback(), cancel_buy_prod_city_dlg_callback(), cancel_connect_dlg_callback(), cancel_disband_unit_callback(), cancel_help_dlg_callback(), cancel_meeting_callback(), cancel_pact_dlg_callback(), cancel_sdip_dlg_callback(), cancel_sell_impr_callback(), cancel_sld_cma_callback(), cancel_units_orders_city_dlg_callback(), cancel_upgrade_unit_callback(), cancel_upgrade_unit_callback(), change_gov_callback(), change_impr_callback(), change_prod_dlg_callback(), change_production_callback(), change_research_callback(), change_research_goal_callback(), change_research_goal_dialog_callback(), change_sex_callback(), change_tech_callback(), change_unit_callback(), cities_action_callback(), cities_callback(), city_dlg_callback(), city_report_windows_callback(), client_options_callback(), cma_callback(), cma_city_dlg_callback(), combo_menu_callback(), combo_menu_item_callback(), connect_callback(), convert_first_passwd_callback(), convert_passwd_callback(), convert_playername_callback(), convert_portnr_callback(), convert_second_passwd_callback(), convert_servername_callback(), del_cma_callback(), diplomat_bribe_stack_callback(), diplomat_bribe_stack_yes_callback(), diplomat_bribe_unit_callback(), diplomat_bribe_unit_yes_callback(), diplomat_close_callback(), diplomat_dlg_window_callback(), diplomat_incite_callback(), diplomat_incite_yes_callback(), disband_unit_window_callback(), disband_units_orders_city_dlg_callback(), disconnect_callback(), disconnect_conn_callback(), economy_callback(), economy_dialog_callback(), edit_worklist_callback(), embassy_callback(), end_turn_callback(), exit_advanced_terrain_dlg_callback(), exit_bribe_dlg_callback(), exit_callback(), exit_change_tech_dlg_callback(), exit_city_dlg_callback(), exit_city_report_callback(), exit_cma_dialog_callback(), exit_economy_dialog_callback(), exit_find_city_dlg_callback(), exit_goto_dialog_callback(), exit_help_dlg_callback(), exit_image_popup_callback(), exit_incite_dlg_callback(), exit_intel_dlg_callback(), exit_load_dlg_callback(), exit_meta_server_dlg_callback(), exit_notify_dialog_callback(), exit_pillage_dlg_callback(), exit_players_dlg_callback(), exit_players_nations_dlg_callback(), exit_space_dialog_callback(), exit_spy_tgt_dlg_callback(), exit_terrain_info_dialog_callback(), exit_unit_select_callback(), exit_units_dlg_callback(), factor_horiz_cma_callback(), find_city_callback(), find_city_window_dlg_callback(), focus_units_info_callback(), fortify_units_orders_city_dlg_callback(), found_city_callback(), global_worklist_callback(), goto_city_callback(), goto_dialog_window_callback(), goto_here_callback(), government_dlg_callback(), gui_event_loop(), gui_event_loop(), happy_city_dlg_callback(), help_browser_callback(), homecity_units_orders_city_dlg_callback(), horiz_taxrate_callback(), hurry_production_callback(), hurry_production_window_callback(), image_popup_window_callback(), incite_dlg_window_callback(), info_city_dlg_callback(), intel_window_dlg_callback(), join_game_callback(), launch_spaceship_callback(), ld_cma_callback(), leader_name_edit_callback(), load_cma_callback(), load_game_callback(), load_game_callback(), load_selected_game_callback(), main_optiondlg_callback(), maps_callback(), min_horiz_cma_callback(), minimap_window_callback(), misc_panel_city_dlg_callback(), move_government_dlg_callback(), move_load_game_dlg_callback(), move_msg_window_callback(), move_new_city_dlg_callback(), msg_callback(), nation_button_callback(), nations_dialog_callback(), newcity_cancel_callback(), newcity_name_edit_callback(), newcity_ok_callback(), next_name_callback(), next_prev_city_dlg_callback(), next_set_callback(), notify_dialog_window_callback(), notify_goto_dialog_callback(), notify_goto_dialog_close_callback(), notify_goto_dialog_goto_callback(), ok_buy_prod_city_dlg_callback(), ok_disband_unit_window_callback(), ok_save_cma_callback(), ok_sell_impr_callback(), ok_upgrade_unit_window_callback(), ok_upgrade_unit_window_callback(), ok_worklist_editor_callback(), option_category_callback(), optiondlg_callback(), options_callback(), options_city_dlg_callback(), pact_callback(), paradrop_here_callback(), patrol_here_callback(), pillage_callback(), pillage_window_callback(), player_nation_callback(), players_action_callback(), players_window_dlg_callback(), popdown_science_dialog_callback(), popdown_worklist_editor_callback(), popup_buy_production_from_city_report_callback(), popup_change_research_dialog_callback(), popup_change_research_goal_dialog_callback(), popup_citydlg_from_city_report_callback(), popup_cma_from_city_report_callback(), popup_find_dialog(), popup_players_nations_dialog(), popup_sell_impr_callback(), popup_unit_disband_dlg(), popup_unit_upgrade_dlg(), popup_upgrade_unit_callback(), popup_worklist_from_city_report_callback(), prev_name_callback(), prev_set_callback(), quit_callback(), races_dialog_cancel_callback(), races_dialog_ok_callback(), remove_clause_callback(), rename_worklist_editor_callback(), research_callback(), resource_map_city_dlg_callback(), revolution_callback(), run_cma_callback(), run_cma_once_callback(), sabotage_impr_callback(), save_client_options_callback(), save_cma_callback(), save_game_callback(), science_dialog_callback(), sdip_window_callback(), select_meta_servers_callback(), select_nation_callback(), sell_impr_window_callback(), sell_imprvm_dlg_callback(), sell_imprvm_dlg_cancel_callback(), sell_imprvm_dlg_ok_callback(), send_passwd_callback(), sentry_units_orders_city_dlg_callback(), server_options_callback(), servers_callback(), shared_tiles_callback(), show_tech_tree_callback(), simple_action_callback(), space_dialog_window_callback(), spaceship_callback(), spy_incite_callback(), spy_steal_callback(), spy_steal_dlg_window_callback(), start_game_callback(), start_new_game_callback(), std_down_advanced_dlg_callback(), std_up_advanced_dlg_callback(), std_vscroll_advanced_dlg_callback(), stop_cma_callback(), style_callback(), supported_unit_city_dlg_callback(), techs_callback(), terrain_info_callback(), terrain_info_window_dlg_callback(), toggle_block_callback(), toggle_cma_celebrating_callback(), toggle_draw_alliance_status_callback(), toggle_draw_ceasefire_status_callback(), toggle_draw_neutral_status_callback(), toggle_draw_peace_status_callback(), toggle_draw_war_status_callback(), toggle_full_tree_mode_in_help_dlg_callback(), toggle_goto_nations_cities_dialog_callback(), toggle_map_window_callback(), toggle_msg_window_callback(), toggle_unit_info_window_callback(), unit_help_callback(), unit_info_window_callback(), unit_order_callback(), unit_select_callback(), unit_select_window_callback(), units_action_callback(), units_dialog_callback(), units_orders_city_dlg_callback(), upgrade_callback(), upgrade_unit_window_callback(), upgrade_unit_window_callback(), upgrade_units_orders_city_dlg_callback(), vision_callback(), widget_pressed_action(), withdraw_vision_dlg_callback(), work_lists_callback(), worklist_editor_item_callback(), worklist_editor_targets_callback(), and zoom_to_city_callback().

◆ gui

struct gui_layer* sdl2_data::gui

◆ guis

struct gui_layer** sdl2_data::guis

◆ guis_count

int sdl2_data::guis_count

◆ maintext

SDL_Texture* sdl2_data::maintext

Definition at line 212 of file graphics.h.

Referenced by create_surfaces(), quit_sdl(), and update_main_screen().

◆ map

SDL_Surface* sdl2_data::map

◆ map_canvas

struct canvas sdl2_data::map_canvas

Definition at line 214 of file graphics.h.

◆ rects

SDL_Rect sdl2_data::rects[RECT_LIMIT]

Definition at line 208 of file graphics.h.

Referenced by dirty_sdl_rect(), and flush_dirty().

◆ rects_count

int sdl2_data::rects_count

Definition at line 206 of file graphics.h.

Referenced by dirty_all(), dirty_sdl_rect(), flush_all(), flush_dirty(), and init_sdl().

◆ renderer

SDL_Renderer* sdl2_data::renderer

Definition at line 213 of file graphics.h.

Referenced by create_surfaces(), free_surfaces(), init_sdl(), and update_main_screen().

◆ screen

SDL_Window* sdl2_data::screen