1
0
Files
BasaltMeter/BasaltPresenter/Presenter/main.cpp

33 lines
1.0 KiB
C++
Raw Normal View History

2026-01-04 23:11:58 +08:00
#include "dll_loader.hpp"
2026-01-08 19:37:25 +08:00
#include "cmd_client.hpp"
2026-01-06 16:27:19 +08:00
#include <basalt/char_types.hpp>
2026-01-04 23:11:58 +08:00
2026-01-08 19:37:25 +08:00
namespace dll_loader = ::basalt::presenter::dll_loader;
using dll_loader::DllKind;
using dll_loader::DllLoader;
using ::basalt::presenter::cmd_client::CmdClient;
2025-11-25 13:38:17 +08:00
int main(int argc, char* argv[]) {
2026-01-08 19:37:25 +08:00
auto engine_dll = DllLoader(DllKind::Engine, BSTEXT("BasaltDirectX11Engine"));
auto deliver_dll = DllLoader(DllKind::Deliver, BSTEXT("BasaltPipeDeliver"));
2026-01-06 21:24:47 +08:00
2026-01-08 19:37:25 +08:00
auto client = CmdClient();
auto payload = client.wait_handshake();
2026-01-06 21:24:47 +08:00
2026-01-08 19:37:25 +08:00
//auto* engine = engine_dll.CreateInstance<Kernel::IEngine>();
//auto* deliver = deliver_dll.CreateInstance<Kernel::IDeliver>();
2026-01-05 16:51:58 +08:00
2026-01-08 19:37:25 +08:00
//Kernel::EngineConfig engine_config{.headless = false, .title = BSTEXT("Fuck You"), .width = payload.width, .height = payload.height};
//engine->startup(std::move(engine_config));
2026-01-04 23:11:58 +08:00
while (true) {
2026-01-08 19:37:25 +08:00
auto req_stop = false; //engine->tick();
auto can_stop = client.tick(req_stop);
2026-01-06 21:24:47 +08:00
if (can_stop) break;
2026-01-04 23:11:58 +08:00
}
2026-01-08 19:37:25 +08:00
//engine->shutdown();
//engine_dll.DestroyInstance(engine);
2025-11-25 13:38:17 +08:00
}