MCPcopy Create free account
hub / github.com/InoriRus/Kyty / game_create_api

Function game_create_api

source/emulator/src/Graphics/Window.cpp:1099–1133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1097}
1098
1099GameApi* game_create_api()
1100{
1101 auto* api = new GameApi;
1102
1103 // memset(api, 0, sizeof(GameApi));
1104
1105 api->init = game_init;
1106 api->render_and_update = game_render_and_update;
1107 api->close = game_close;
1108
1109 api->event_quit = game_event_quit;
1110 api->event_terminate = game_event_terminate;
1111 api->event_keyboard = game_event_keyboard;
1112 api->event_mouse = game_event_mouse;
1113 api->event_finger = game_event_finger;
1114 api->event_controller = game_event_controller;
1115 api->event_display = game_event_display;
1116 api->event_low_memory = game_event_low_memory;
1117 api->event_will_enter_background = game_event_will_enter_background;
1118 api->event_did_enter_background = game_event_did_enter_background;
1119 api->event_will_enter_foreground = game_event_will_enter_foreground;
1120 api->event_did_enter_foreground = game_event_did_enter_foreground;
1121 api->event_resize = game_event_resize;
1122
1123 api->show_window = game_show_window;
1124
1125 api->need_exit = game_need_exit;
1126 api->is_paused = game_is_paused;
1127
1128 api->poll_event = game_poll_event;
1129 api->wait_event = game_wait_event;
1130 api->process_event = game_process_event;
1131
1132 return api;
1133}
1134
1135void game_delete_api(GameApi* api)
1136{

Callers 1

WindowRunFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected