From 9e2d63adb90c293f4bc2893b0de7655aea2ecc85 Mon Sep 17 00:00:00 2001 From: crupest Date: Sun, 26 May 2019 23:38:34 +0800 Subject: ... --- include/cru/platform/graph/graph_factory.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/cru/platform/graph/graph_factory.hpp') diff --git a/include/cru/platform/graph/graph_factory.hpp b/include/cru/platform/graph/graph_factory.hpp index b2619e8d..60d4ed8a 100644 --- a/include/cru/platform/graph/graph_factory.hpp +++ b/include/cru/platform/graph/graph_factory.hpp @@ -15,10 +15,14 @@ namespace cru::platform::graph { // Entry point of the graph module. +// If you create a IUiApplication instance, then you should not create +// IGraphFactory manually. IUiApplication will call +// IGraphFactory::CreateInstance and set auto-delete to true. +// The manual creation method of IGraphFactory provides a you a way to use graph +// related tools without interact with actual ui like window system. struct IGraphFactory : virtual Interface, virtual IAutoDelete { // Create a platform-specific instance and save it as the global instance. // Do not create the instance twice. Implements should assert for that. - // After the // After creating, get the instance by GetInstance. static IGraphFactory* CreateInstance(); -- cgit v1.2.3