Project Alice
Loading...
Searching...
No Matches
launcher Namespace Reference

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 []
 

Enumeration Type Documentation

◆ string_index

enum class launcher::string_index : uint8_t
strong
Enumerator
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 

Definition at line 105 of file launcher_main.cpp.

Function Documentation

◆ base_text_extent()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ compile_shader()

GLint launcher::compile_shader ( std::string_view  source,
GLenum  type 
)

Definition at line 1308 of file launcher_main.cpp.

◆ create_opengl_context()

void launcher::create_opengl_context ( )

Definition at line 793 of file launcher_main.cpp.

Here is the call graph for this function:

◆ create_program()

GLuint launcher::create_program ( std::string_view  vertex_shader,
std::string_view  fragment_shader 
)

Definition at line 1343 of file launcher_main.cpp.

◆ enforce_list_order()

void launcher::enforce_list_order ( )

Definition at line 919 of file launcher_main.cpp.

◆ find_scenario_file()

void launcher::find_scenario_file ( )

Definition at line 1072 of file launcher_main.cpp.

Here is the call graph for this function:

◆ is_high_surrogate()

bool launcher::is_high_surrogate ( uint16_t  char_code)
noexcept

Definition at line 2002 of file launcher_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ is_low_surrogate()

bool launcher::is_low_surrogate ( uint16_t  char_code)
noexcept

Definition at line 1999 of file launcher_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ load_global_squares()

void launcher::load_global_squares ( )

Definition at line 1472 of file launcher_main.cpp.

◆ load_shaders()

void launcher::load_shaders ( )

Definition at line 1384 of file launcher_main.cpp.

Here is the call graph for this function:

◆ make_mod_file()

void launcher::make_mod_file ( )

Definition at line 986 of file launcher_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mouse_click()

void launcher::mouse_click ( )

Definition at line 1089 of file launcher_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ nth_item_can_move_down()

bool launcher::nth_item_can_move_down ( int32_t  n)

Definition at line 941 of file launcher_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ nth_item_can_move_up()

bool launcher::nth_item_can_move_up ( int32_t  n)

Definition at line 933 of file launcher_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ process_utf16_to_win1250()

char launcher::process_utf16_to_win1250 ( wchar_t  c)

Definition at line 2006 of file launcher_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ produce_mod_path()

native_string launcher::produce_mod_path ( )

Definition at line 952 of file launcher_main.cpp.

Here is the call graph for this function:

◆ recursively_add_to_list()

void launcher::recursively_add_to_list ( parsers::mod_file mod)

Definition at line 885 of file launcher_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ recursively_remove_from_list()

void launcher::recursively_remove_from_list ( parsers::mod_file mod)

Definition at line 875 of file launcher_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ render()

void launcher::render ( )

Definition at line 1708 of file launcher_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ save_playername()

void launcher::save_playername ( )

Definition at line 966 of file launcher_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ shutdown_opengl()

void launcher::shutdown_opengl ( )

Definition at line 847 of file launcher_main.cpp.

◆ to_hex()

native_string launcher::to_hex ( uint64_t  v)

Definition at line 975 of file launcher_main.cpp.

◆ transitively_depends_on()

bool launcher::transitively_depends_on ( parsers::mod_file const &  moda,
parsers::mod_file const &  modb 
)

Definition at line 912 of file launcher_main.cpp.

Here is the call graph for this function:

◆ transitively_depends_on_internal()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_under_mouse()

bool launcher::update_under_mouse ( )

Definition at line 853 of file launcher_main.cpp.

Here is the caller graph for this function:

◆ WndProc()

LRESULT CALLBACK launcher::WndProc ( HWND  hwnd,
UINT  message,
WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 2016 of file launcher_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ base_height

constexpr float launcher::base_height = 540.0f
inlineconstexpr

Definition at line 93 of file launcher_main.cpp.

◆ base_width

constexpr float launcher::base_width = 880.0f
inlineconstexpr

Definition at line 92 of file launcher_main.cpp.

◆ caption_height

constexpr float launcher::caption_height = 44.0f
inlineconstexpr

Definition at line 96 of file launcher_main.cpp.

◆ caption_width

constexpr float launcher::caption_width = 837.0f
inlineconstexpr

Definition at line 95 of file launcher_main.cpp.

◆ list_text_right_align

constexpr float launcher::list_text_right_align = 420.0f
inlineconstexpr

Definition at line 714 of file launcher_main.cpp.

◆ ui_list_checkbox

constexpr int32_t launcher::ui_list_checkbox = 0
inlineconstexpr

Definition at line 707 of file launcher_main.cpp.

◆ ui_list_count

constexpr int32_t launcher::ui_list_count = 14
inlineconstexpr

Definition at line 704 of file launcher_main.cpp.

◆ ui_list_end

constexpr int32_t launcher::ui_list_end = ui_list_first + ui_list_count * 3
inlineconstexpr

Definition at line 710 of file launcher_main.cpp.

◆ ui_list_first

constexpr int32_t launcher::ui_list_first = 10
inlineconstexpr

Definition at line 706 of file launcher_main.cpp.

◆ ui_list_move_down

constexpr int32_t launcher::ui_list_move_down = 2
inlineconstexpr

Definition at line 709 of file launcher_main.cpp.

◆ ui_list_move_up

constexpr int32_t launcher::ui_list_move_up = 1
inlineconstexpr

Definition at line 708 of file launcher_main.cpp.

◆ ui_obj_close

constexpr int32_t launcher::ui_obj_close = 0
inlineconstexpr

Definition at line 693 of file launcher_main.cpp.

◆ ui_obj_create_scenario

constexpr int32_t launcher::ui_obj_create_scenario = 3
inlineconstexpr

Definition at line 696 of file launcher_main.cpp.

◆ ui_obj_host_game

constexpr int32_t launcher::ui_obj_host_game = 5
inlineconstexpr

Definition at line 698 of file launcher_main.cpp.

◆ ui_obj_ip_addr

constexpr int32_t launcher::ui_obj_ip_addr = 7
inlineconstexpr

Definition at line 700 of file launcher_main.cpp.

◆ ui_obj_join_game

constexpr int32_t launcher::ui_obj_join_game = 6
inlineconstexpr

Definition at line 699 of file launcher_main.cpp.

◆ ui_obj_list_left

constexpr int32_t launcher::ui_obj_list_left = 1
inlineconstexpr

Definition at line 694 of file launcher_main.cpp.

◆ ui_obj_list_right

constexpr int32_t launcher::ui_obj_list_right = 2
inlineconstexpr

Definition at line 695 of file launcher_main.cpp.

◆ ui_obj_password

constexpr int32_t launcher::ui_obj_password = 8
inlineconstexpr

Definition at line 701 of file launcher_main.cpp.

◆ ui_obj_play_game

constexpr int32_t launcher::ui_obj_play_game = 4
inlineconstexpr

Definition at line 697 of file launcher_main.cpp.

◆ ui_obj_player_name

constexpr int32_t launcher::ui_obj_player_name = 9
inlineconstexpr

Definition at line 702 of file launcher_main.cpp.

◆ ui_rects

constexpr ui_active_rect launcher::ui_rects[]
inlineconstexpr

Definition at line 720 of file launcher_main.cpp.

◆ ui_row_height

constexpr int32_t launcher::ui_row_height = 32
inlineconstexpr

Definition at line 712 of file launcher_main.cpp.