diff options
| author | Yuqian Yang <crupest@crupest.life> | 2025-12-04 22:23:45 +0800 |
|---|---|---|
| committer | Yuqian Yang <crupest@crupest.life> | 2025-12-05 03:03:21 +0800 |
| commit | 8dcca49f42627400773dcc707ebaa757cbeef37b (patch) | |
| tree | 4466c1552dffa62bba518f247acf1ba3a98d3685 /src/platform/bootstrap/Bootstrap.cpp | |
| parent | d5d65b703244dfcc31228439e91ad0cfebb76456 (diff) | |
| download | cru-8dcca49f42627400773dcc707ebaa757cbeef37b.tar.gz cru-8dcca49f42627400773dcc707ebaa757cbeef37b.tar.bz2 cru-8dcca49f42627400773dcc707ebaa757cbeef37b.zip | |
Impl sdl opengl renderer.
Diffstat (limited to 'src/platform/bootstrap/Bootstrap.cpp')
| -rw-r--r-- | src/platform/bootstrap/Bootstrap.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/platform/bootstrap/Bootstrap.cpp b/src/platform/bootstrap/Bootstrap.cpp index bcf12613..48cc4f71 100644 --- a/src/platform/bootstrap/Bootstrap.cpp +++ b/src/platform/bootstrap/Bootstrap.cpp @@ -5,6 +5,8 @@ #elif defined(__APPLE__) #include "cru/platform/gui/osx/UiApplication.h" #elif defined(__unix) +#include "cru/platform/graphics/cairo/CairoGraphicsFactory.h" +#include "cru/platform/gui/sdl/UiApplication.h" #include "cru/platform/gui/xcb/UiApplication.h" #else #endif @@ -16,7 +18,9 @@ cru::platform::gui::IUiApplication* CreateUiApplication() { #elif defined(__APPLE__) return new cru::platform::gui::osx::OsxUiApplication(); #else - return new cru::platform::gui::xcb::XcbUiApplication(); + // return new cru::platform::gui::xcb::XcbUiApplication(); + return new cru::platform::gui::sdl::SdlUiApplication( + new cru::platform::graphics::cairo::CairoGraphicsFactory(), true); #endif NotImplemented(); } |
