MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / ui_Init

Function ui_Init

ui/UISystem.cpp:208–223  ·  view source on GitHub ↗

///////////////////////////////////////////////////////////////////////// FUNCTIONS call this function to initialize the UI system. pass a surface where all UI will occur

Source from the content-addressed store, hash-verified

206// FUNCTIONS
207// call this function to initialize the UI system. pass a surface where all UI will occur
208void ui_Init(oeApplication *app, tUIInitInfo *init_info) {
209 // initialize variables
210 if (UI_app) {
211 ui_Close();
212 }
213 // clear out input poller.
214 ui_Flush();
215 UI_cursor_bm = -1;
216 UI_cursor_show = 0;
217 UI_app = app;
218 UIWindowList = NULL;
219 UIWindowTail = NULL;
220 UITextItem::SetDefaultFont(init_info->window_font);
221 ui_SetScreenMode(init_info->w, init_info->h);
222 UI_init = true;
223}
224// frees ui input cache
225void ui_Flush() {
226// UI_input.mx = 0;

Callers 2

InitEditGameSystemsFunction · 0.85
InitGameSystemsFunction · 0.85

Calls 3

ui_CloseFunction · 0.85
ui_FlushFunction · 0.85
ui_SetScreenModeFunction · 0.85

Tested by

no test coverage detected