Project Alice
|
#include <map.hpp>
Public Member Functions | |
display_data () | |
~display_data () | |
void | load_map_data (parsers::scenario_building_context &context) |
void | load_map (sys::state &state) |
void | render (sys::state &state, glm::vec2 screen_size, glm::vec2 offset, float zoom, map_view map_view_mode, map_mode::mode active_map_mode, glm::mat3 globe_rotation, float time_counter) |
void | update_borders (sys::state &state) |
void | update_fog_of_war (sys::state &state) |
void | set_selected_province (sys::state &state, dcon::province_id province_id) |
void | set_province_color (std::vector< uint32_t > const &prov_color) |
void | set_drag_box (bool draw_box, glm::vec2 pos1, glm::vec2 pos2, glm::vec2 pixel_size) |
void | update_railroad_paths (sys::state &state) |
void | set_text_lines (sys::state &state, std::vector< text_line_generator_data > const &data) |
void | set_province_text_lines (sys::state &state, std::vector< text_line_generator_data > const &data) |
void | load_border_data (parsers::scenario_building_context &context) |
void | create_border_ogl_objects () |
void | load_province_data (parsers::scenario_building_context &context, ogl::image &image) |
void | load_provinces_mid_point (parsers::scenario_building_context &context) |
void | load_terrain_data (parsers::scenario_building_context &context) |
void | load_median_terrain_type (parsers::scenario_building_context &context) |
uint16_t | safe_get_province (glm::ivec2 pt) |
void | make_coastal_borders (sys::state &state, std::vector< bool > &visited) |
void | make_borders (sys::state &state, std::vector< bool > &visited) |
void | load_shaders (simple_fs::directory &root) |
void | create_meshes () |
void | gen_prov_color_texture (GLuint texture_handle, std::vector< uint32_t > const &prov_color, uint8_t layers=1) |
void | create_curved_river_vertices (parsers::scenario_building_context &context, std::vector< uint8_t > const &river_data, std::vector< uint8_t > const &terrain_data) |
void map::display_data::create_curved_river_vertices | ( | parsers::scenario_building_context & | context, |
std::vector< uint8_t > const & | river_data, | ||
std::vector< uint8_t > const & | terrain_data | ||
) |
Definition at line 1039 of file map_borders.cpp.
void map::display_data::create_meshes | ( | ) |
void map::display_data::load_border_data | ( | parsers::scenario_building_context & | context | ) |
Definition at line 118 of file map_borders.cpp.
void map::display_data::load_map | ( | sys::state & | state | ) |
void map::display_data::load_map_data | ( | parsers::scenario_building_context & | context | ) |
Definition at line 568 of file map_data_loading.cpp.
void map::display_data::load_median_terrain_type | ( | parsers::scenario_building_context & | context | ) |
void map::display_data::load_province_data | ( | parsers::scenario_building_context & | context, |
ogl::image & | image | ||
) |
Definition at line 524 of file map_data_loading.cpp.
void map::display_data::load_provinces_mid_point | ( | parsers::scenario_building_context & | context | ) |
Definition at line 497 of file map_data_loading.cpp.
void map::display_data::load_shaders | ( | simple_fs::directory & | root | ) |
void map::display_data::load_terrain_data | ( | parsers::scenario_building_context & | context | ) |
Definition at line 359 of file map_data_loading.cpp.
void map::display_data::make_borders | ( | sys::state & | state, |
std::vector< bool > & | visited | ||
) |
Definition at line 489 of file map_borders.cpp.
void map::display_data::make_coastal_borders | ( | sys::state & | state, |
std::vector< bool > & | visited | ||
) |
Definition at line 735 of file map_borders.cpp.
void map::display_data::render | ( | sys::state & | state, |
glm::vec2 | screen_size, | ||
glm::vec2 | offset, | ||
float | zoom, | ||
map_view | map_view_mode, | ||
map_mode::mode | active_map_mode, | ||
glm::mat3 | globe_rotation, | ||
float | time_counter | ||
) |
uint16_t map::display_data::safe_get_province | ( | glm::ivec2 | pt | ) |
void map::display_data::set_drag_box | ( | bool | draw_box, |
glm::vec2 | pos1, | ||
glm::vec2 | pos2, | ||
glm::vec2 | pixel_size | ||
) |
void map::display_data::set_province_color | ( | std::vector< uint32_t > const & | prov_color | ) |
void map::display_data::set_province_text_lines | ( | sys::state & | state, |
std::vector< text_line_generator_data > const & | data | ||
) |
void map::display_data::set_selected_province | ( | sys::state & | state, |
dcon::province_id | province_id | ||
) |
void map::display_data::set_text_lines | ( | sys::state & | state, |
std::vector< text_line_generator_data > const & | data | ||
) |
void map::display_data::update_borders | ( | sys::state & | state | ) |
void map::display_data::update_fog_of_war | ( | sys::state & | state | ) |
void map::display_data::update_railroad_paths | ( | sys::state & | state | ) |
std::vector<GLsizei> map::display_data::attack_unit_arrow_counts |
std::vector<GLint> map::display_data::attack_unit_arrow_starts |
std::vector<curved_line_vertex> map::display_data::attack_unit_arrow_vertices |
std::vector<textured_line_vertex_b> map::display_data::border_vertices |
std::vector<textured_line_vertex_b> map::display_data::coastal_vertices |
std::vector<screen_vertex> map::display_data::drag_box_vertices |
|
staticconstexpr |
std::vector<GLsizei> map::display_data::objective_unit_arrow_counts |
std::vector<GLint> map::display_data::objective_unit_arrow_starts |
std::vector<curved_line_vertex> map::display_data::objective_unit_arrow_vertices |
std::vector<GLsizei> map::display_data::other_objective_unit_arrow_counts |
std::vector<GLint> map::display_data::other_objective_unit_arrow_starts |
std::vector<curved_line_vertex> map::display_data::other_objective_unit_arrow_vertices |
std::vector<uint32_t> map::display_data::province_id_sea_mask |
std::vector<text_line_vertex> map::display_data::province_text_line_vertices |
std::vector<textured_line_vertex> map::display_data::railroad_vertices |
std::vector<GLsizei> map::display_data::retreat_unit_arrow_counts |
std::vector<GLint> map::display_data::retreat_unit_arrow_starts |
std::vector<curved_line_vertex> map::display_data::retreat_unit_arrow_vertices |
std::vector<textured_line_with_width_vertex> map::display_data::river_vertices |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
GLuint map::display_data::shader_uniforms[shader_count][uniform_count] = { } |
GLuint map::display_data::shaders[shader_count] = { 0 } |
GLuint map::display_data::static_mesh_textures[max_static_meshes] = { 0 } |
std::vector<GLsizei> map::display_data::strategy_unit_arrow_counts |
std::vector<GLint> map::display_data::strategy_unit_arrow_starts |
std::vector<curved_line_vertex> map::display_data::strategy_unit_arrow_vertices |
std::vector<GLuint> map::display_data::text_line_texture_per_quad |
std::vector<text_line_vertex> map::display_data::text_line_vertices |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
GLuint map::display_data::texture_arrays[texture_array_count] = { 0 } |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
GLuint map::display_data::textures[texture_count] = { 0 } |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
std::vector<curved_line_vertex> map::display_data::unit_arrow_vertices |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |