From 27f153af927c056af5cec70db5f011752e29b156 Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Fri, 12 Sep 2025 00:42:36 +0800 Subject: Organize bootstrap and graphics demos. --- include/cru/platform/bootstrap/GraphicsBootstrap.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 include/cru/platform/bootstrap/GraphicsBootstrap.h (limited to 'include/cru/platform/bootstrap/GraphicsBootstrap.h') 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 -- cgit v1.2.3