diff options
author | crupest <crupest@outlook.com> | 2019-05-26 23:38:34 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-05-26 23:38:34 +0800 |
commit | 9e2d63adb90c293f4bc2893b0de7655aea2ecc85 (patch) | |
tree | 102bb993bf0dbca6c0673195a327f01c59287172 /include/cru/platform/graph | |
parent | a191a44e0ec7fd353cb9a60e2e7a18f45f6df04a (diff) | |
download | cru-9e2d63adb90c293f4bc2893b0de7655aea2ecc85.tar.gz cru-9e2d63adb90c293f4bc2893b0de7655aea2ecc85.tar.bz2 cru-9e2d63adb90c293f4bc2893b0de7655aea2ecc85.zip |
...
Diffstat (limited to 'include/cru/platform/graph')
-rw-r--r-- | include/cru/platform/graph/graph_factory.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
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(); |