Browse Source

Platform: add dummy title setting function to NaClApplication.

So the user doesn't need to wrap it in #ifdefs when porting to NaCl.
pull/38/head
Vladimír Vondruš 13 years ago
parent
commit
d4162a4160
  1. 10
      src/Platform/NaClApplication.h

10
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<class T> Configuration& setTitle(const T&) { return *this; }
/** @brief Window size */
Vector2i size() const { return _size; }

Loading…
Cancel
Save