Project Alice
|
Namespaces | |
namespace | ogl |
Classes | |
struct | scenario_file |
struct | ui_active_rect |
Enumerations | |
enum class | string_index : uint8_t { create_scenario , recreate_scenario , working , create_a_new_scenario , for_the_selected_mods , no_scenario_found , ip_address , password , nickname , singleplayer , multiplayer , start_game , host , join , mod_list , count } |
Functions | |
void | create_opengl_context () |
void | shutdown_opengl () |
bool | update_under_mouse () |
void | recursively_remove_from_list (parsers::mod_file &mod) |
void | recursively_add_to_list (parsers::mod_file &mod) |
bool | transitively_depends_on_internal (parsers::mod_file const &moda, parsers::mod_file const &modb, std::vector< bool > &seen_indices) |
bool | transitively_depends_on (parsers::mod_file const &moda, parsers::mod_file const &modb) |
void | enforce_list_order () |
bool | nth_item_can_move_up (int32_t n) |
bool | nth_item_can_move_down (int32_t n) |
native_string | produce_mod_path () |
void | save_playername () |
native_string | to_hex (uint64_t v) |
void | make_mod_file () |
void | find_scenario_file () |
void | mouse_click () |
GLint | compile_shader (std::string_view source, GLenum type) |
GLuint | create_program (std::string_view vertex_shader, std::string_view fragment_shader) |
void | load_shaders () |
void | load_global_squares () |
float | base_text_extent (char const *codepoints, uint32_t count, int32_t size, text::font &f) |
void | render () |
bool | is_low_surrogate (uint16_t char_code) noexcept |
bool | is_high_surrogate (uint16_t char_code) noexcept |
char | process_utf16_to_win1250 (wchar_t c) |
LRESULT CALLBACK | WndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) |
Variables | |
constexpr float | base_width = 880.0f |
constexpr float | base_height = 540.0f |
constexpr float | caption_width = 837.0f |
constexpr float | caption_height = 44.0f |
constexpr int32_t | ui_obj_close = 0 |
constexpr int32_t | ui_obj_list_left = 1 |
constexpr int32_t | ui_obj_list_right = 2 |
constexpr int32_t | ui_obj_create_scenario = 3 |
constexpr int32_t | ui_obj_play_game = 4 |
constexpr int32_t | ui_obj_host_game = 5 |
constexpr int32_t | ui_obj_join_game = 6 |
constexpr int32_t | ui_obj_ip_addr = 7 |
constexpr int32_t | ui_obj_password = 8 |
constexpr int32_t | ui_obj_player_name = 9 |
constexpr int32_t | ui_list_count = 14 |
constexpr int32_t | ui_list_first = 10 |
constexpr int32_t | ui_list_checkbox = 0 |
constexpr int32_t | ui_list_move_up = 1 |
constexpr int32_t | ui_list_move_down = 2 |
constexpr int32_t | ui_list_end = ui_list_first + ui_list_count * 3 |
constexpr int32_t | ui_row_height = 32 |
constexpr float | list_text_right_align = 420.0f |
constexpr ui_active_rect | ui_rects [] |
|
strong |
Definition at line 105 of file launcher_main.cpp.
float launcher::base_text_extent | ( | char const * | codepoints, |
uint32_t | count, | ||
int32_t | size, | ||
text::font & | f | ||
) |
Definition at line 1685 of file launcher_main.cpp.
GLint launcher::compile_shader | ( | std::string_view | source, |
GLenum | type | ||
) |
Definition at line 1308 of file launcher_main.cpp.
void launcher::create_opengl_context | ( | ) |
GLuint launcher::create_program | ( | std::string_view | vertex_shader, |
std::string_view | fragment_shader | ||
) |
Definition at line 1343 of file launcher_main.cpp.
void launcher::enforce_list_order | ( | ) |
Definition at line 919 of file launcher_main.cpp.
void launcher::find_scenario_file | ( | ) |
|
noexcept |
Definition at line 2002 of file launcher_main.cpp.
|
noexcept |
Definition at line 1999 of file launcher_main.cpp.
void launcher::load_global_squares | ( | ) |
Definition at line 1472 of file launcher_main.cpp.
void launcher::load_shaders | ( | ) |
void launcher::make_mod_file | ( | ) |
Definition at line 986 of file launcher_main.cpp.
void launcher::mouse_click | ( | ) |
Definition at line 1089 of file launcher_main.cpp.
bool launcher::nth_item_can_move_down | ( | int32_t | n | ) |
Definition at line 941 of file launcher_main.cpp.
bool launcher::nth_item_can_move_up | ( | int32_t | n | ) |
Definition at line 933 of file launcher_main.cpp.
char launcher::process_utf16_to_win1250 | ( | wchar_t | c | ) |
Definition at line 2006 of file launcher_main.cpp.
native_string launcher::produce_mod_path | ( | ) |
void launcher::recursively_add_to_list | ( | parsers::mod_file & | mod | ) |
Definition at line 885 of file launcher_main.cpp.
void launcher::recursively_remove_from_list | ( | parsers::mod_file & | mod | ) |
Definition at line 875 of file launcher_main.cpp.
void launcher::render | ( | ) |
Definition at line 1708 of file launcher_main.cpp.
void launcher::save_playername | ( | ) |
Definition at line 966 of file launcher_main.cpp.
void launcher::shutdown_opengl | ( | ) |
Definition at line 847 of file launcher_main.cpp.
native_string launcher::to_hex | ( | uint64_t | v | ) |
Definition at line 975 of file launcher_main.cpp.
bool launcher::transitively_depends_on | ( | parsers::mod_file const & | moda, |
parsers::mod_file const & | modb | ||
) |
bool launcher::transitively_depends_on_internal | ( | parsers::mod_file const & | moda, |
parsers::mod_file const & | modb, | ||
std::vector< bool > & | seen_indices | ||
) |
Definition at line 896 of file launcher_main.cpp.
bool launcher::update_under_mouse | ( | ) |
LRESULT CALLBACK launcher::WndProc | ( | HWND | hwnd, |
UINT | message, | ||
WPARAM | wParam, | ||
LPARAM | lParam | ||
) |
Definition at line 2016 of file launcher_main.cpp.
|
inlineconstexpr |
Definition at line 93 of file launcher_main.cpp.
|
inlineconstexpr |
Definition at line 92 of file launcher_main.cpp.
|
inlineconstexpr |
Definition at line 96 of file launcher_main.cpp.
|
inlineconstexpr |
Definition at line 95 of file launcher_main.cpp.
|
inlineconstexpr |
Definition at line 714 of file launcher_main.cpp.
|
inlineconstexpr |
Definition at line 707 of file launcher_main.cpp.
|
inlineconstexpr |
Definition at line 704 of file launcher_main.cpp.
|
inlineconstexpr |
Definition at line 710 of file launcher_main.cpp.
|
inlineconstexpr |
Definition at line 706 of file launcher_main.cpp.
|
inlineconstexpr |
Definition at line 709 of file launcher_main.cpp.
|
inlineconstexpr |
Definition at line 708 of file launcher_main.cpp.
|
inlineconstexpr |
Definition at line 693 of file launcher_main.cpp.
|
inlineconstexpr |
Definition at line 696 of file launcher_main.cpp.
|
inlineconstexpr |
Definition at line 698 of file launcher_main.cpp.
|
inlineconstexpr |
Definition at line 700 of file launcher_main.cpp.
|
inlineconstexpr |
Definition at line 699 of file launcher_main.cpp.
|
inlineconstexpr |
Definition at line 694 of file launcher_main.cpp.
|
inlineconstexpr |
Definition at line 695 of file launcher_main.cpp.
|
inlineconstexpr |
Definition at line 701 of file launcher_main.cpp.
|
inlineconstexpr |
Definition at line 697 of file launcher_main.cpp.
|
inlineconstexpr |
Definition at line 702 of file launcher_main.cpp.
|
inlineconstexpr |
Definition at line 720 of file launcher_main.cpp.
|
inlineconstexpr |
Definition at line 712 of file launcher_main.cpp.