From d4162a4160e68be9015874d1ad4ce647978f1738 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 18 Dec 2013 00:52:47 +0100 Subject: [PATCH] Platform: add dummy title setting function to NaClApplication. So the user doesn't need to wrap it in #ifdefs when porting to NaCl. --- src/Platform/NaClApplication.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Platform/NaClApplication.h b/src/Platform/NaClApplication.h index d09e62605..9c1642809 100644 --- a/src/Platform/NaClApplication.h +++ b/src/Platform/NaClApplication.h @@ -345,6 +345,16 @@ class NaClApplication::Configuration { public: constexpr /*implicit*/ Configuration(): _size(640, 480), _sampleCount(0) {} + /** + * @brief Set window title + * @return Reference to self (for method chaining) + * + * @note This function does nothing and is included only for + * compatibility with other toolkits. You need to set the title + * separately in application's HTML markup. + */ + template Configuration& setTitle(const T&) { return *this; } + /** @brief Window size */ Vector2i size() const { return _size; }