mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-03-03 10:11:51 -05:00
Move Window calls to portside (#4833)
* Move LUS window calls to portside * move dropped frame handling to port side * Use fast3d all in one draw * bump to upstream lus
This commit is contained in:
parent
323ea2df96
commit
4e8ccce002
@ -1 +1 @@
|
|||||||
Subproject commit 3e46fe77a4581a84f9c0edfab9c3a69a5320fe01
|
Subproject commit 7fc73766ed4c636b49e2218d948100ee7782456e
|
@ -1355,14 +1355,20 @@ extern "C" void Graph_StartFrame() {
|
|||||||
CVarClear(CVAR_NEW_FILE_DROPPED);
|
CVarClear(CVAR_NEW_FILE_DROPPED);
|
||||||
CVarClear(CVAR_DROPPED_FILE);
|
CVarClear(CVAR_DROPPED_FILE);
|
||||||
}
|
}
|
||||||
|
|
||||||
OTRGlobals::Instance->context->GetWindow()->StartFrame();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void RunCommands(Gfx* Commands, const std::vector<std::unordered_map<Mtx*, MtxF>>& mtx_replacements) {
|
void RunCommands(Gfx* Commands, const std::vector<std::unordered_map<Mtx*, MtxF>>& mtx_replacements) {
|
||||||
|
auto wnd = std::dynamic_pointer_cast<Fast::Fast3dWindow>(OTRGlobals::Instance->context->GetWindow());
|
||||||
|
|
||||||
|
if (wnd == nullptr) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Process window events for resize, mouse, keyboard events
|
||||||
|
wnd->HandleEvents();
|
||||||
|
|
||||||
for (const auto& m : mtx_replacements) {
|
for (const auto& m : mtx_replacements) {
|
||||||
gfx_run(Commands, m);
|
wnd->DrawAndRunGraphicsCommands(Commands, m);
|
||||||
gfx_end_frame();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user