diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-09-12 00:42:36 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-09-12 00:42:36 +0800 |
commit | 27f153af927c056af5cec70db5f011752e29b156 (patch) | |
tree | cdbe0a61f037cd1641f23f681d221a3206454411 /include/cru | |
parent | 7c135df9b8057e1de3ea6a73fb785d5622b519d4 (diff) | |
download | cru-27f153af927c056af5cec70db5f011752e29b156.tar.gz cru-27f153af927c056af5cec70db5f011752e29b156.tar.bz2 cru-27f153af927c056af5cec70db5f011752e29b156.zip |
Organize bootstrap and graphics demos.
Diffstat (limited to 'include/cru')
-rw-r--r-- | include/cru/platform/bootstrap/Bootstrap.h | 4 | ||||
-rw-r--r-- | include/cru/platform/bootstrap/GraphicsBootstrap.h | 17 |
2 files changed, 17 insertions, 4 deletions
diff --git a/include/cru/platform/bootstrap/Bootstrap.h b/include/cru/platform/bootstrap/Bootstrap.h index 42b4cbb6..a8a2c16a 100644 --- a/include/cru/platform/bootstrap/Bootstrap.h +++ b/include/cru/platform/bootstrap/Bootstrap.h @@ -1,5 +1,4 @@ #pragma once -#include "cru/platform/graphics/Factory.h" #include "cru/platform/gui/UiApplication.h" #ifdef CRU_IS_DLL @@ -15,7 +14,4 @@ namespace cru::platform::bootstrap { CRU_PLATFORM_BOOTSTRAP_API cru::platform::gui::IUiApplication* CreateUiApplication(); - -CRU_PLATFORM_BOOTSTRAP_API cru::platform::graphics::IGraphicsFactory* -CreateGraphicsFactory(); } // namespace cru::platform::bootstrap diff --git a/include/cru/platform/bootstrap/GraphicsBootstrap.h b/include/cru/platform/bootstrap/GraphicsBootstrap.h new file mode 100644 index 00000000..6f29a62d --- /dev/null +++ b/include/cru/platform/bootstrap/GraphicsBootstrap.h @@ -0,0 +1,17 @@ +#pragma once +#include "cru/platform/graphics/Factory.h" + +#ifdef CRU_IS_DLL +#ifdef CRU_PLATFORM_GRAPHICS_BOOTSTRAP_EXPORT_API +#define CRU_PLATFORM_GRAPHICS_BOOTSTRAP_API __declspec(dllexport) +#else +#define CRU_PLATFORM_GRAPHICS_BOOTSTRAP_API __declspec(dllimport) +#endif +#else +#define CRU_PLATFORM_GRAPHICS_BOOTSTRAP_API +#endif + +namespace cru::platform::bootstrap { +CRU_PLATFORM_GRAPHICS_BOOTSTRAP_API cru::platform::graphics::IGraphicsFactory* +CreateGraphicsFactory(); +} // namespace cru::platform::bootstrap |