Код: Выделить всё
XPLMRegisterDrawCallback(mainDrawCallback, xplm_Phase_Gauge, 0, nullptr);
Код: Выделить всё
XPLMRegisterDrawCallback(mainDrawCallback, xplm_Phase_Window, 0, nullptr);
XPLMCreateWindow_t win = { 0 };
win.structSize = sizeof(win);
win.left = 50;
win.top = 200;
win.right = 650;
win.bottom = 600;
win.visible = 1;
win.drawWindowFunc = drawCallback;
win.refcon = nullptr;
// These are crucial for handling input in the external window
win.decorateAsFloatingWindow = xplm_WindowDecorationRoundRectangle;
win.layer = xplm_WindowLayerFloatingWindows;
g_window = XPLMCreateWindowEx(&win);
Подробнее здесь: https://stackoverflow.com/questions/797 ... awcallback
Мобильная версия