aboutsummaryrefslogtreecommitdiff
path: root/src/ui/helper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/helper.cpp')
-rw-r--r--src/ui/helper.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/ui/helper.cpp b/src/ui/helper.cpp
new file mode 100644
index 00000000..4d5d8665
--- /dev/null
+++ b/src/ui/helper.cpp
@@ -0,0 +1,15 @@
+#include "helper.hpp"
+
+#include "cru/platform/graph/factory.hpp"
+#include "cru/platform/native/ui_application.hpp"
+
+namespace cru::ui {
+using cru::platform::graph::IGraphFactory;
+using cru::platform::native::IUiApplication;
+
+IGraphFactory* GetGraphFactory() {
+ return IUiApplication::GetInstance()->GetGraphFactory();
+}
+
+IUiApplication* GetUiApplication() { return IUiApplication::GetInstance(); }
+} // namespace cru::ui