From 42db34ea43b14ff1043a97e09daed3e02d59c42d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 11 Mar 2012 02:53:12 +0100 Subject: [PATCH] Added function returning default scene of imported file. --- src/Trade/AbstractImporter.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Trade/AbstractImporter.h b/src/Trade/AbstractImporter.h index 076a8e678..93e28c5a6 100644 --- a/src/Trade/AbstractImporter.h +++ b/src/Trade/AbstractImporter.h @@ -104,6 +104,17 @@ class MAGNUM_EXPORT AbstractImporter: public Corrade::PluginManager::Plugin { * Each function pair provides access to the data. */ + /** + * @brief Default scene + * + * When there is more than one scene, returns ID of the default one. + * Note that this function returns 0 even if there are no scenes. + * + * @note The function is not const, because the value will probably + * be lazy-populated. + */ + virtual inline size_t defaultScene() { return 0; } + /** @brief %Scene count */ virtual inline size_t sceneCount() const { return 0; }