Apply clang-tidy modernize suggestions.

This commit is contained in:
binary1248 2017-04-03 01:17:03 +02:00
parent 9d2bfcc334
commit 1df71a356e
35 changed files with 163 additions and 165 deletions

View file

@ -59,7 +59,7 @@ public:
/// \brief Destructor /// \brief Destructor
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
~Music(); ~Music() override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Open a music from an audio file /// \brief Open a music from an audio file
@ -147,7 +147,7 @@ protected:
/// \return True to continue playback, false to stop /// \return True to continue playback, false to stop
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual bool onGetData(Chunk& data); bool onGetData(Chunk& data) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Change the current playing position in the stream source /// \brief Change the current playing position in the stream source
@ -155,7 +155,7 @@ protected:
/// \param timeOffset New playing position, from the beginning of the music /// \param timeOffset New playing position, from the beginning of the music
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void onSeek(Time timeOffset); void onSeek(Time timeOffset) override;
private: private:

View file

@ -72,7 +72,7 @@ public:
/// \brief Destructor /// \brief Destructor
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
~Sound(); ~Sound() override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Start or resume playing the sound /// \brief Start or resume playing the sound

View file

@ -49,7 +49,7 @@ public:
/// \brief destructor /// \brief destructor
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
~SoundBufferRecorder(); ~SoundBufferRecorder() override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Get the sound buffer containing the captured audio data /// \brief Get the sound buffer containing the captured audio data
@ -72,7 +72,7 @@ protected:
/// \return True to start the capture, or false to abort it /// \return True to start the capture, or false to abort it
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual bool onStart(); bool onStart() override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Process a new chunk of recorded samples /// \brief Process a new chunk of recorded samples
@ -83,13 +83,13 @@ protected:
/// \return True to continue the capture, or false to stop it /// \return True to continue the capture, or false to stop it
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual bool onProcessSamples(const Int16* samples, std::size_t sampleCount); bool onProcessSamples(const Int16* samples, std::size_t sampleCount) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Stop capturing audio data /// \brief Stop capturing audio data
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void onStop(); void onStop() override;
private: private:

View file

@ -60,7 +60,7 @@ public:
/// \brief Destructor /// \brief Destructor
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual ~SoundStream(); ~SoundStream() override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Start or resume playing the audio stream /// \brief Start or resume playing the audio stream

View file

@ -89,7 +89,7 @@ public:
/// \see setPointCount /// \see setPointCount
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual std::size_t getPointCount() const; std::size_t getPointCount() const override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Get a point of the circle /// \brief Get a point of the circle
@ -104,7 +104,7 @@ public:
/// \return index-th point of the shape /// \return index-th point of the shape
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual Vector2f getPoint(std::size_t index) const; Vector2f getPoint(std::size_t index) const override;
private: private:

View file

@ -71,7 +71,7 @@ public:
/// \see setPointCount /// \see setPointCount
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual std::size_t getPointCount() const; std::size_t getPointCount() const override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Set the position of a point /// \brief Set the position of a point
@ -105,7 +105,7 @@ public:
/// \see setPoint /// \see setPoint
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual Vector2f getPoint(std::size_t index) const; Vector2f getPoint(std::size_t index) const override;
private: private:

View file

@ -77,7 +77,7 @@ public:
/// shapes, this number is always 4. /// shapes, this number is always 4.
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual std::size_t getPointCount() const; std::size_t getPointCount() const override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Get a point of the rectangle /// \brief Get a point of the rectangle
@ -92,7 +92,7 @@ public:
/// \return index-th point of the shape /// \return index-th point of the shape
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual Vector2f getPoint(std::size_t index) const; Vector2f getPoint(std::size_t index) const override;
private: private:

View file

@ -64,7 +64,7 @@ public:
/// \brief Destructor /// \brief Destructor
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual ~RenderTexture(); ~RenderTexture() override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Create the render-texture /// \brief Create the render-texture
@ -163,7 +163,7 @@ public:
/// \return True if operation was successful, false otherwise /// \return True if operation was successful, false otherwise
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
bool setActive(bool active = true); bool setActive(bool active = true) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Update the contents of the target texture /// \brief Update the contents of the target texture
@ -185,7 +185,7 @@ public:
/// \return Size in pixels /// \return Size in pixels
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual Vector2u getSize() const; Vector2u getSize() const override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Get a read-only reference to the target texture /// \brief Get a read-only reference to the target texture

View file

@ -99,7 +99,7 @@ public:
/// Closes the window and frees all the resources attached to it. /// Closes the window and frees all the resources attached to it.
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual ~RenderWindow(); ~RenderWindow() override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Get the size of the rendering region of the window /// \brief Get the size of the rendering region of the window
@ -110,7 +110,7 @@ public:
/// \return Size in pixels /// \return Size in pixels
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual Vector2u getSize() const; Vector2u getSize() const override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Activate or deactivate the window as the current target /// \brief Activate or deactivate the window as the current target
@ -128,7 +128,7 @@ public:
/// \return True if operation was successful, false otherwise /// \return True if operation was successful, false otherwise
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
bool setActive(bool active = true); bool setActive(bool active = true) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Copy the current contents of the window to an image /// \brief Copy the current contents of the window to an image
@ -167,7 +167,7 @@ protected:
/// the window is created. /// the window is created.
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void onCreate(); void onCreate() override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Function called after the window has been resized /// \brief Function called after the window has been resized
@ -176,7 +176,7 @@ protected:
/// perform custom actions when the size of the window changes. /// perform custom actions when the size of the window changes.
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void onResize(); void onResize() override;
}; };
} // namespace sf } // namespace sf

View file

@ -49,7 +49,7 @@ public:
/// \brief Virtual destructor /// \brief Virtual destructor
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual ~Shape(); ~Shape() override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Change the source texture of the shape /// \brief Change the source texture of the shape
@ -274,7 +274,7 @@ private:
/// \param states Current render states /// \param states Current render states
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void draw(RenderTarget& target, RenderStates states) const; void draw(RenderTarget& target, RenderStates states) const override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Update the fill vertices' color /// \brief Update the fill vertices' color

View file

@ -198,7 +198,7 @@ private:
/// \param states Current render states /// \param states Current render states
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void draw(RenderTarget& target, RenderStates states) const; void draw(RenderTarget& target, RenderStates states) const override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Update the vertices' positions /// \brief Update the vertices' positions

View file

@ -368,7 +368,7 @@ private:
/// \param states Current render states /// \param states Current render states
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void draw(RenderTarget& target, RenderStates states) const; void draw(RenderTarget& target, RenderStates states) const override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Make sure the text's geometry is updated /// \brief Make sure the text's geometry is updated

View file

@ -180,7 +180,7 @@ private:
/// \param states Current render states /// \param states Current render states
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void draw(RenderTarget& target, RenderStates states) const; void draw(RenderTarget& target, RenderStates states) const override;
private: private:

View file

@ -66,7 +66,7 @@ public:
/// \brief Default destructor /// \brief Default destructor
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual ~FileInputStream(); ~FileInputStream() override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Open the stream from a file path /// \brief Open the stream from a file path
@ -90,7 +90,7 @@ public:
/// \return The number of bytes actually read, or -1 on error /// \return The number of bytes actually read, or -1 on error
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual Int64 read(void* data, Int64 size); Int64 read(void* data, Int64 size) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Change the current reading position /// \brief Change the current reading position
@ -100,7 +100,7 @@ public:
/// \return The position actually sought to, or -1 on error /// \return The position actually sought to, or -1 on error
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual Int64 seek(Int64 position); Int64 seek(Int64 position) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Get the current reading position in the stream /// \brief Get the current reading position in the stream
@ -108,7 +108,7 @@ public:
/// \return The current position, or -1 on error. /// \return The current position, or -1 on error.
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual Int64 tell(); Int64 tell() override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Return the size of the stream /// \brief Return the size of the stream
@ -116,7 +116,7 @@ public:
/// \return The total number of bytes available in the stream, or -1 on error /// \return The total number of bytes available in the stream, or -1 on error
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual Int64 getSize(); Int64 getSize() override;
private: private:

View file

@ -71,7 +71,7 @@ public:
/// \return The number of bytes actually read, or -1 on error /// \return The number of bytes actually read, or -1 on error
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual Int64 read(void* data, Int64 size); Int64 read(void* data, Int64 size) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Change the current reading position /// \brief Change the current reading position
@ -81,7 +81,7 @@ public:
/// \return The position actually sought to, or -1 on error /// \return The position actually sought to, or -1 on error
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual Int64 seek(Int64 position); Int64 seek(Int64 position) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Get the current reading position in the stream /// \brief Get the current reading position in the stream
@ -89,7 +89,7 @@ public:
/// \return The current position, or -1 on error. /// \return The current position, or -1 on error.
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual Int64 tell(); Int64 tell() override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Return the size of the stream /// \brief Return the size of the stream
@ -97,7 +97,7 @@ public:
/// \return The total number of bytes available in the stream, or -1 on error /// \return The total number of bytes available in the stream, or -1 on error
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual Int64 getSize(); Int64 getSize() override;
private: private:

View file

@ -68,7 +68,7 @@ public:
/// \brief Default constructor /// \brief Default constructor
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
~SoundFileReaderFlac(); ~SoundFileReaderFlac() override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Open a sound file for reading /// \brief Open a sound file for reading
@ -77,7 +77,7 @@ public:
/// \param info Structure to fill with the attributes of the loaded sound /// \param info Structure to fill with the attributes of the loaded sound
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual bool open(sf::InputStream& stream, Info& info); bool open(sf::InputStream& stream, Info& info) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Change the current read position to the given sample offset /// \brief Change the current read position to the given sample offset
@ -91,7 +91,7 @@ public:
/// \param sampleOffset Index of the sample to jump to, relative to the beginning /// \param sampleOffset Index of the sample to jump to, relative to the beginning
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void seek(Uint64 sampleOffset); void seek(Uint64 sampleOffset) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Read audio samples from the open file /// \brief Read audio samples from the open file
@ -102,7 +102,7 @@ public:
/// \return Number of samples actually read (may be less than \a maxCount) /// \return Number of samples actually read (may be less than \a maxCount)
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual Uint64 read(Int16* samples, Uint64 maxCount); Uint64 read(Int16* samples, Uint64 maxCount) override;
public: public:

View file

@ -66,7 +66,7 @@ public:
/// \brief Destructor /// \brief Destructor
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
~SoundFileReaderOgg(); ~SoundFileReaderOgg() override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Open a sound file for reading /// \brief Open a sound file for reading
@ -77,7 +77,7 @@ public:
/// \return True if the file was successfully opened /// \return True if the file was successfully opened
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual bool open(InputStream& stream, Info& info); bool open(InputStream& stream, Info& info) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Change the current read position to the given sample offset /// \brief Change the current read position to the given sample offset
@ -91,7 +91,7 @@ public:
/// \param sampleOffset Index of the sample to jump to, relative to the beginning /// \param sampleOffset Index of the sample to jump to, relative to the beginning
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void seek(Uint64 sampleOffset); void seek(Uint64 sampleOffset) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Read audio samples from the open file /// \brief Read audio samples from the open file
@ -102,7 +102,7 @@ public:
/// \return Number of samples actually read (may be less than \a maxCount) /// \return Number of samples actually read (may be less than \a maxCount)
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual Uint64 read(Int16* samples, Uint64 maxCount); Uint64 read(Int16* samples, Uint64 maxCount) override;
private: private:

View file

@ -69,7 +69,7 @@ public:
/// \param info Structure to fill with the attributes of the loaded sound /// \param info Structure to fill with the attributes of the loaded sound
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual bool open(sf::InputStream& stream, Info& info); bool open(sf::InputStream& stream, Info& info) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Change the current read position to the given sample offset /// \brief Change the current read position to the given sample offset
@ -83,7 +83,7 @@ public:
/// \param sampleOffset Index of the sample to jump to, relative to the beginning /// \param sampleOffset Index of the sample to jump to, relative to the beginning
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void seek(Uint64 sampleOffset); void seek(Uint64 sampleOffset) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Read audio samples from the open file /// \brief Read audio samples from the open file
@ -94,7 +94,7 @@ public:
/// \return Number of samples actually read (may be less than \a maxCount) /// \return Number of samples actually read (may be less than \a maxCount)
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual Uint64 read(Int16* samples, Uint64 maxCount); Uint64 read(Int16* samples, Uint64 maxCount) override;
private: private:

View file

@ -67,7 +67,7 @@ public:
/// \brief Destructor /// \brief Destructor
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
~SoundFileWriterFlac(); ~SoundFileWriterFlac() override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Open a sound file for writing /// \brief Open a sound file for writing
@ -79,7 +79,7 @@ public:
/// \return True if the file was successfully opened /// \return True if the file was successfully opened
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual bool open(const std::string& filename, unsigned int sampleRate, unsigned int channelCount); bool open(const std::string& filename, unsigned int sampleRate, unsigned int channelCount) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Write audio samples to the open file /// \brief Write audio samples to the open file
@ -88,7 +88,7 @@ public:
/// \param count Number of samples to write /// \param count Number of samples to write
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void write(const Int16* samples, Uint64 count); void write(const Int16* samples, Uint64 count) override;
private: private:

View file

@ -67,7 +67,7 @@ public:
/// \brief Destructor /// \brief Destructor
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
~SoundFileWriterOgg(); ~SoundFileWriterOgg() override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Open a sound file for writing /// \brief Open a sound file for writing
@ -79,7 +79,7 @@ public:
/// \return True if the file was successfully opened /// \return True if the file was successfully opened
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual bool open(const std::string& filename, unsigned int sampleRate, unsigned int channelCount); bool open(const std::string& filename, unsigned int sampleRate, unsigned int channelCount) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Write audio samples to the open file /// \brief Write audio samples to the open file
@ -88,7 +88,7 @@ public:
/// \param count Number of samples to write /// \param count Number of samples to write
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void write(const Int16* samples, Uint64 count); void write(const Int16* samples, Uint64 count) override;
private: private:

View file

@ -67,7 +67,7 @@ public:
/// \brief Destructor /// \brief Destructor
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
~SoundFileWriterWav(); ~SoundFileWriterWav() override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Open a sound file for writing /// \brief Open a sound file for writing
@ -79,7 +79,7 @@ public:
/// \return True if the file was successfully opened /// \return True if the file was successfully opened
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual bool open(const std::string& filename, unsigned int sampleRate, unsigned int channelCount); bool open(const std::string& filename, unsigned int sampleRate, unsigned int channelCount) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Write audio samples to the open file /// \brief Write audio samples to the open file
@ -88,7 +88,7 @@ public:
/// \param count Number of samples to write /// \param count Number of samples to write
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void write(const Int16* samples, Uint64 count); void write(const Int16* samples, Uint64 count) override;
private: private:

View file

@ -66,7 +66,7 @@ private:
/// \return True if creation has been successful /// \return True if creation has been successful
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual bool create(unsigned int width, unsigned int height, unsigned int textureId, bool depthBuffer); bool create(unsigned int width, unsigned int height, unsigned int textureId, bool depthBuffer) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Activate or deactivate the render texture for rendering /// \brief Activate or deactivate the render texture for rendering
@ -76,7 +76,7 @@ private:
/// \return True on success, false on failure /// \return True on success, false on failure
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual bool activate(bool active); bool activate(bool active) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Update the pixels of the target texture /// \brief Update the pixels of the target texture
@ -84,7 +84,7 @@ private:
/// \param textureId OpenGL identifier of the target texture /// \param textureId OpenGL identifier of the target texture
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void updateTexture(unsigned textureId); void updateTexture(unsigned textureId) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
// Member data // Member data

View file

@ -57,7 +57,7 @@ public:
/// \brief Destructor /// \brief Destructor
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
~RenderTextureImplFBO(); ~RenderTextureImplFBO() override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Check whether the system supports FBOs or not /// \brief Check whether the system supports FBOs or not
@ -80,7 +80,7 @@ private:
/// \return True if creation has been successful /// \return True if creation has been successful
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual bool create(unsigned int width, unsigned int height, unsigned int textureId, bool depthBuffer); bool create(unsigned int width, unsigned int height, unsigned int textureId, bool depthBuffer) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Activate or deactivate the render texture for rendering /// \brief Activate or deactivate the render texture for rendering
@ -90,7 +90,7 @@ private:
/// \return True on success, false on failure /// \return True on success, false on failure
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual bool activate(bool active); bool activate(bool active) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Update the pixels of the target texture /// \brief Update the pixels of the target texture
@ -98,7 +98,7 @@ private:
/// \param textureId OpenGL identifier of the target texture /// \param textureId OpenGL identifier of the target texture
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void updateTexture(unsigned textureId); void updateTexture(unsigned textureId) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
// Member data // Member data

View file

@ -43,15 +43,15 @@ public:
setp(m_buffer, m_buffer + sizeof(m_buffer)); setp(m_buffer, m_buffer + sizeof(m_buffer));
} }
~DefaultErrStreamBuf() ~DefaultErrStreamBuf() override
{ {
// Synchronize // Synchronize
sync(); DefaultErrStreamBuf::sync();
} }
private: private:
virtual int overflow(int character) int overflow(int character) override
{ {
if ((character != EOF) && (pptr() != epptr())) if ((character != EOF) && (pptr() != epptr()))
{ {
@ -71,7 +71,7 @@ private:
} }
} }
virtual int sync() int sync() override
{ {
// Check if there is something into the write buffer // Check if there is something into the write buffer
if (pbase() != pptr()) if (pbase() != pptr())

View file

@ -70,7 +70,7 @@ public:
/// \brief Destructor /// \brief Destructor
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
~WindowImplAndroid(); ~WindowImplAndroid() override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Get the OS-specific handle of the window /// \brief Get the OS-specific handle of the window
@ -78,7 +78,7 @@ public:
/// \return Handle of the window /// \return Handle of the window
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual WindowHandle getSystemHandle() const; WindowHandle getSystemHandle() const override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Get the position of the window /// \brief Get the position of the window
@ -86,7 +86,7 @@ public:
/// \return Position of the window, in pixels /// \return Position of the window, in pixels
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual Vector2i getPosition() const; Vector2i getPosition() const override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Change the position of the window on screen /// \brief Change the position of the window on screen
@ -94,7 +94,7 @@ public:
/// \param position New position of the window, in pixels /// \param position New position of the window, in pixels
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void setPosition(const Vector2i& position); void setPosition(const Vector2i& position) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Get the client size of the window /// \brief Get the client size of the window
@ -102,7 +102,7 @@ public:
/// \return Size of the window, in pixels /// \return Size of the window, in pixels
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual Vector2u getSize() const; Vector2u getSize() const override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Change the size of the rendering region of the window /// \brief Change the size of the rendering region of the window
@ -110,7 +110,7 @@ public:
/// \param size New size, in pixels /// \param size New size, in pixels
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void setSize(const Vector2u& size); void setSize(const Vector2u& size) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Change the title of the window /// \brief Change the title of the window
@ -118,7 +118,7 @@ public:
/// \param title New title /// \param title New title
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void setTitle(const String& title); void setTitle(const String& title) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Change the window's icon /// \brief Change the window's icon
@ -128,7 +128,7 @@ public:
/// \param pixels Pointer to the pixels in memory, format must be RGBA 32 bits /// \param pixels Pointer to the pixels in memory, format must be RGBA 32 bits
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void setIcon(unsigned int width, unsigned int height, const Uint8* pixels); void setIcon(unsigned int width, unsigned int height, const Uint8* pixels) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Show or hide the window /// \brief Show or hide the window
@ -136,7 +136,7 @@ public:
/// \param visible True to show, false to hide /// \param visible True to show, false to hide
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void setVisible(bool visible); void setVisible(bool visible) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Show or hide the mouse cursor /// \brief Show or hide the mouse cursor
@ -144,7 +144,7 @@ public:
/// \param visible True to show, false to hide /// \param visible True to show, false to hide
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void setMouseCursorVisible(bool visible); void setMouseCursorVisible(bool visible) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Clips or releases the mouse cursor /// \brief Clips or releases the mouse cursor
@ -152,7 +152,7 @@ public:
/// \param grabbed True to enable, false to disable /// \param grabbed True to enable, false to disable
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void setMouseCursorGrabbed(bool grabbed); void setMouseCursorGrabbed(bool grabbed) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Enable or disable automatic key-repeat /// \brief Enable or disable automatic key-repeat
@ -160,14 +160,14 @@ public:
/// \param enabled True to enable, false to disable /// \param enabled True to enable, false to disable
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void setKeyRepeatEnabled(bool enabled); void setKeyRepeatEnabled(bool enabled) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Request the current window to be made the active /// \brief Request the current window to be made the active
/// foreground window /// foreground window
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void requestFocus(); void requestFocus() override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Check whether the window has the input focus /// \brief Check whether the window has the input focus
@ -175,7 +175,7 @@ public:
/// \return True if window has focus, false otherwise /// \return True if window has focus, false otherwise
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual bool hasFocus() const; bool hasFocus() const override;
static void forwardEvent(const Event& event); static void forwardEvent(const Event& event);
static WindowImplAndroid* singleInstance; static WindowImplAndroid* singleInstance;
@ -186,7 +186,7 @@ protected:
/// \brief Process incoming events from the operating system /// \brief Process incoming events from the operating system
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void processEvents(); void processEvents() override;
private: private:

View file

@ -77,7 +77,7 @@ public:
/// \brief Destructor /// \brief Destructor
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
~EglContext(); ~EglContext() override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Activate the context as the current target /// \brief Activate the context as the current target
@ -88,13 +88,13 @@ public:
/// \return True on success, false if any error happened /// \return True on success, false if any error happened
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual bool makeCurrent(bool current); bool makeCurrent(bool current) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Display what has been rendered to the context so far /// \brief Display what has been rendered to the context so far
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void display(); void display() override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Enable or disable vertical synchronization /// \brief Enable or disable vertical synchronization
@ -107,7 +107,7 @@ public:
/// \param enabled: True to enable v-sync, false to deactivate /// \param enabled: True to enable v-sync, false to deactivate
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void setVerticalSyncEnabled(bool enabled); void setVerticalSyncEnabled(bool enabled) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Create the context /// \brief Create the context

View file

@ -101,7 +101,7 @@ public:
/// \brief Destructor /// \brief Destructor
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
~SFContext(); ~SFContext() override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Get the address of an OpenGL function /// \brief Get the address of an OpenGL function
@ -117,7 +117,7 @@ public:
/// \brief Display what has been rendered to the context so far /// \brief Display what has been rendered to the context so far
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void display(); void display() override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Enable or disable vertical synchronization /// \brief Enable or disable vertical synchronization
@ -130,7 +130,7 @@ public:
/// \param enabled True to enable v-sync, false to deactivate /// \param enabled True to enable v-sync, false to deactivate
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void setVerticalSyncEnabled(bool enabled); void setVerticalSyncEnabled(bool enabled) override;
protected: protected:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
@ -142,7 +142,7 @@ protected:
/// \return True on success, false if any error happened /// \return True on success, false if any error happened
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual bool makeCurrent(bool current); bool makeCurrent(bool current) override;
private: private:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////

View file

@ -87,7 +87,7 @@ public:
/// \brief Destructor /// \brief Destructor
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
~WindowImplCocoa(); ~WindowImplCocoa() override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Window Closed Event - called by the cocoa window object /// \brief Window Closed Event - called by the cocoa window object
@ -245,7 +245,7 @@ public:
/// \return Handle of the window /// \return Handle of the window
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual WindowHandle getSystemHandle() const; WindowHandle getSystemHandle() const override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Get the position of the window /// \brief Get the position of the window
@ -253,7 +253,7 @@ public:
/// \return Position of the window, in pixels /// \return Position of the window, in pixels
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual Vector2i getPosition() const; Vector2i getPosition() const override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Change the position of the window on screen /// \brief Change the position of the window on screen
@ -261,7 +261,7 @@ public:
/// \param position New position of the window, in pixels /// \param position New position of the window, in pixels
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void setPosition(const Vector2i& position); void setPosition(const Vector2i& position) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Get the client size of the window /// \brief Get the client size of the window
@ -269,7 +269,7 @@ public:
/// \return Size of the window, in pixels /// \return Size of the window, in pixels
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual Vector2u getSize() const; Vector2u getSize() const override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Change the size of the rendering region of the window /// \brief Change the size of the rendering region of the window
@ -277,7 +277,7 @@ public:
/// \param size New size, in pixels /// \param size New size, in pixels
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void setSize(const Vector2u& size); void setSize(const Vector2u& size) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Change the title of the window /// \brief Change the title of the window
@ -285,7 +285,7 @@ public:
/// \param title New title /// \param title New title
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void setTitle(const String& title); void setTitle(const String& title) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Change the window's icon /// \brief Change the window's icon
@ -295,7 +295,7 @@ public:
/// \param pixels Pointer to the pixels in memory, format must be RGBA 32 bits /// \param pixels Pointer to the pixels in memory, format must be RGBA 32 bits
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void setIcon(unsigned int width, unsigned int height, const Uint8* pixels); void setIcon(unsigned int width, unsigned int height, const Uint8* pixels) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Show or hide the window /// \brief Show or hide the window
@ -303,7 +303,7 @@ public:
/// \param visible True to show, false to hide /// \param visible True to show, false to hide
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void setVisible(bool visible); void setVisible(bool visible) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Show or hide the mouse cursor /// \brief Show or hide the mouse cursor
@ -311,7 +311,7 @@ public:
/// \param visible True to show, false to hide /// \param visible True to show, false to hide
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void setMouseCursorVisible(bool visible); void setMouseCursorVisible(bool visible) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Grab or release the mouse cursor /// \brief Grab or release the mouse cursor
@ -319,7 +319,7 @@ public:
/// \param grabbed True to grab, false to release /// \param grabbed True to grab, false to release
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void setMouseCursorGrabbed(bool grabbed); void setMouseCursorGrabbed(bool grabbed) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Enable or disable automatic key-repeat /// \brief Enable or disable automatic key-repeat
@ -327,14 +327,14 @@ public:
/// \param enabled True to enable, false to disable /// \param enabled True to enable, false to disable
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void setKeyRepeatEnabled(bool enabled); void setKeyRepeatEnabled(bool enabled) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Request the current window to be made the active /// \brief Request the current window to be made the active
/// foreground window /// foreground window
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void requestFocus(); void requestFocus() override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Check whether the window has the input focus /// \brief Check whether the window has the input focus
@ -342,7 +342,7 @@ public:
/// \return True if window has focus, false otherwise /// \return True if window has focus, false otherwise
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual bool hasFocus() const; bool hasFocus() const override;
protected: protected:
@ -350,7 +350,7 @@ protected:
/// \brief Process incoming events from the operating system /// \brief Process incoming events from the operating system
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void processEvents(); void processEvents() override;
private: private:

View file

@ -79,7 +79,7 @@ public:
/// \brief Destructor /// \brief Destructor
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
~GlxContext(); ~GlxContext() override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Get the address of an OpenGL function /// \brief Get the address of an OpenGL function
@ -99,13 +99,13 @@ public:
/// \return True on success, false if any error happened /// \return True on success, false if any error happened
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual bool makeCurrent(bool current); bool makeCurrent(bool current) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Display what has been rendered to the context so far /// \brief Display what has been rendered to the context so far
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void display(); void display() override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Enable or disable vertical synchronization /// \brief Enable or disable vertical synchronization
@ -118,7 +118,7 @@ public:
/// \param enabled True to enable v-sync, false to deactivate /// \param enabled True to enable v-sync, false to deactivate
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void setVerticalSyncEnabled(bool enabled); void setVerticalSyncEnabled(bool enabled) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Select the best GLX visual for a given set of settings /// \brief Select the best GLX visual for a given set of settings

View file

@ -212,8 +212,6 @@ bool InputImpl::isMouseButtonPressed(Mouse::Button button)
case Mouse::XButton2: return false; // not supported by X case Mouse::XButton2: return false; // not supported by X
default: return false; default: return false;
} }
return false;
} }

View file

@ -70,7 +70,7 @@ public:
/// \brief Destructor /// \brief Destructor
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
~WindowImplX11(); ~WindowImplX11() override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Get the OS-specific handle of the window /// \brief Get the OS-specific handle of the window
@ -78,7 +78,7 @@ public:
/// \return Handle of the window /// \return Handle of the window
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual WindowHandle getSystemHandle() const; WindowHandle getSystemHandle() const override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Get the position of the window /// \brief Get the position of the window
@ -86,7 +86,7 @@ public:
/// \return Position of the window, in pixels /// \return Position of the window, in pixels
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual Vector2i getPosition() const; Vector2i getPosition() const override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Change the position of the window on screen /// \brief Change the position of the window on screen
@ -94,7 +94,7 @@ public:
/// \param position New position of the window, in pixels /// \param position New position of the window, in pixels
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void setPosition(const Vector2i& position); void setPosition(const Vector2i& position) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Get the client size of the window /// \brief Get the client size of the window
@ -102,7 +102,7 @@ public:
/// \return Size of the window, in pixels /// \return Size of the window, in pixels
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual Vector2u getSize() const; Vector2u getSize() const override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Change the size of the rendering region of the window /// \brief Change the size of the rendering region of the window
@ -110,7 +110,7 @@ public:
/// \param size New size, in pixels /// \param size New size, in pixels
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void setSize(const Vector2u& size); void setSize(const Vector2u& size) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Change the title of the window /// \brief Change the title of the window
@ -118,7 +118,7 @@ public:
/// \param title New title /// \param title New title
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void setTitle(const String& title); void setTitle(const String& title) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Change the window's icon /// \brief Change the window's icon
@ -128,7 +128,7 @@ public:
/// \param pixels Pointer to the pixels in memory, format must be RGBA 32 bits /// \param pixels Pointer to the pixels in memory, format must be RGBA 32 bits
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void setIcon(unsigned int width, unsigned int height, const Uint8* pixels); void setIcon(unsigned int width, unsigned int height, const Uint8* pixels) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Show or hide the window /// \brief Show or hide the window
@ -136,7 +136,7 @@ public:
/// \param visible True to show, false to hide /// \param visible True to show, false to hide
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void setVisible(bool visible); void setVisible(bool visible) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Show or hide the mouse cursor /// \brief Show or hide the mouse cursor
@ -144,7 +144,7 @@ public:
/// \param visible True to show, false to hide /// \param visible True to show, false to hide
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void setMouseCursorVisible(bool visible); void setMouseCursorVisible(bool visible) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Grab or release the mouse cursor /// \brief Grab or release the mouse cursor
@ -152,7 +152,7 @@ public:
/// \param grabbed True to enable, false to disable /// \param grabbed True to enable, false to disable
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void setMouseCursorGrabbed(bool grabbed); void setMouseCursorGrabbed(bool grabbed) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Enable or disable automatic key-repeat /// \brief Enable or disable automatic key-repeat
@ -160,14 +160,14 @@ public:
/// \param enabled True to enable, false to disable /// \param enabled True to enable, false to disable
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void setKeyRepeatEnabled(bool enabled); void setKeyRepeatEnabled(bool enabled) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Request the current window to be made the active /// \brief Request the current window to be made the active
/// foreground window /// foreground window
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void requestFocus(); void requestFocus() override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Check whether the window has the input focus /// \brief Check whether the window has the input focus
@ -175,7 +175,7 @@ public:
/// \return True if window has focus, false otherwise /// \return True if window has focus, false otherwise
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual bool hasFocus() const; bool hasFocus() const override;
protected: protected:
@ -183,7 +183,7 @@ protected:
/// \brief Process incoming events from the operating system /// \brief Process incoming events from the operating system
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void processEvents(); void processEvents() override;
private: private:

View file

@ -78,7 +78,7 @@ public:
/// \brief Destructor /// \brief Destructor
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
~WglContext(); ~WglContext() override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Get the address of an OpenGL function /// \brief Get the address of an OpenGL function
@ -98,13 +98,13 @@ public:
/// \return True on success, false if any error happened /// \return True on success, false if any error happened
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual bool makeCurrent(bool current); bool makeCurrent(bool current) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Display what has been rendered to the context so far /// \brief Display what has been rendered to the context so far
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void display(); void display() override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Enable or disable vertical synchronization /// \brief Enable or disable vertical synchronization
@ -117,7 +117,7 @@ public:
/// \param enabled: True to enable v-sync, false to deactivate /// \param enabled: True to enable v-sync, false to deactivate
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void setVerticalSyncEnabled(bool enabled); void setVerticalSyncEnabled(bool enabled) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Select the best pixel format for a given set of settings /// \brief Select the best pixel format for a given set of settings

View file

@ -69,7 +69,7 @@ public:
/// \brief Destructor /// \brief Destructor
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
~WindowImplWin32(); ~WindowImplWin32() override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Get the OS-specific handle of the window /// \brief Get the OS-specific handle of the window
@ -77,7 +77,7 @@ public:
/// \return Handle of the window /// \return Handle of the window
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual WindowHandle getSystemHandle() const; WindowHandle getSystemHandle() const override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Get the position of the window /// \brief Get the position of the window
@ -85,7 +85,7 @@ public:
/// \return Position of the window, in pixels /// \return Position of the window, in pixels
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual Vector2i getPosition() const; Vector2i getPosition() const override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Change the position of the window on screen /// \brief Change the position of the window on screen
@ -93,7 +93,7 @@ public:
/// \param position New position of the window, in pixels /// \param position New position of the window, in pixels
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void setPosition(const Vector2i& position); void setPosition(const Vector2i& position) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Get the client size of the window /// \brief Get the client size of the window
@ -101,7 +101,7 @@ public:
/// \return Size of the window, in pixels /// \return Size of the window, in pixels
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual Vector2u getSize() const; Vector2u getSize() const override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Change the size of the rendering region of the window /// \brief Change the size of the rendering region of the window
@ -109,7 +109,7 @@ public:
/// \param size New size, in pixels /// \param size New size, in pixels
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void setSize(const Vector2u& size); void setSize(const Vector2u& size) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Change the title of the window /// \brief Change the title of the window
@ -117,7 +117,7 @@ public:
/// \param title New title /// \param title New title
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void setTitle(const String& title); void setTitle(const String& title) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Change the window's icon /// \brief Change the window's icon
@ -127,7 +127,7 @@ public:
/// \param pixels Pointer to the pixels in memory, format must be RGBA 32 bits /// \param pixels Pointer to the pixels in memory, format must be RGBA 32 bits
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void setIcon(unsigned int width, unsigned int height, const Uint8* pixels); void setIcon(unsigned int width, unsigned int height, const Uint8* pixels) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Show or hide the window /// \brief Show or hide the window
@ -135,7 +135,7 @@ public:
/// \param visible True to show, false to hide /// \param visible True to show, false to hide
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void setVisible(bool visible); void setVisible(bool visible) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Show or hide the mouse cursor /// \brief Show or hide the mouse cursor
@ -143,7 +143,7 @@ public:
/// \param visible True to show, false to hide /// \param visible True to show, false to hide
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void setMouseCursorVisible(bool visible); void setMouseCursorVisible(bool visible) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Grab or release the mouse cursor /// \brief Grab or release the mouse cursor
@ -151,7 +151,7 @@ public:
/// \param grabbed True to enable, false to disable /// \param grabbed True to enable, false to disable
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void setMouseCursorGrabbed(bool grabbed); void setMouseCursorGrabbed(bool grabbed) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Enable or disable automatic key-repeat /// \brief Enable or disable automatic key-repeat
@ -159,14 +159,14 @@ public:
/// \param enabled True to enable, false to disable /// \param enabled True to enable, false to disable
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void setKeyRepeatEnabled(bool enabled); void setKeyRepeatEnabled(bool enabled) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Request the current window to be made the active /// \brief Request the current window to be made the active
/// foreground window /// foreground window
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void requestFocus(); void requestFocus() override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Check whether the window has the input focus /// \brief Check whether the window has the input focus
@ -174,7 +174,7 @@ public:
/// \return True if window has focus, false otherwise /// \return True if window has focus, false otherwise
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual bool hasFocus() const; bool hasFocus() const override;
protected: protected:
@ -182,7 +182,7 @@ protected:
/// \brief Process incoming events from the operating system /// \brief Process incoming events from the operating system
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void processEvents(); void processEvents() override;
private: private:

View file

@ -88,7 +88,7 @@ public:
/// \brief Destructor /// \brief Destructor
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
~EaglContext(); ~EaglContext() override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Recreate the render buffers of the context /// \brief Recreate the render buffers of the context
@ -105,7 +105,7 @@ public:
/// \brief Display what has been rendered to the context so far /// \brief Display what has been rendered to the context so far
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void display(); void display() override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Enable or disable vertical synchronization /// \brief Enable or disable vertical synchronization
@ -118,7 +118,7 @@ public:
/// \param enabled: True to enable v-sync, false to deactivate /// \param enabled: True to enable v-sync, false to deactivate
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void setVerticalSyncEnabled(bool enabled); void setVerticalSyncEnabled(bool enabled) override;
protected: protected:
@ -131,7 +131,7 @@ protected:
/// \return True on success, false if any error happened /// \return True on success, false if any error happened
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual bool makeCurrent(bool current); bool makeCurrent(bool current) override;
private: private:

View file

@ -73,7 +73,7 @@ public:
/// \brief Destructor /// \brief Destructor
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
~WindowImplUIKit(); ~WindowImplUIKit() override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Get the OS-specific handle of the window /// \brief Get the OS-specific handle of the window
@ -81,7 +81,7 @@ public:
/// \return Handle of the window /// \return Handle of the window
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual WindowHandle getSystemHandle() const; WindowHandle getSystemHandle() const override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Get the position of the window /// \brief Get the position of the window
@ -89,7 +89,7 @@ public:
/// \return Position of the window, in pixels /// \return Position of the window, in pixels
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual Vector2i getPosition() const; Vector2i getPosition() const override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Change the position of the window on screen /// \brief Change the position of the window on screen
@ -97,7 +97,7 @@ public:
/// \param position New position of the window, in pixels /// \param position New position of the window, in pixels
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void setPosition(const Vector2i& position); void setPosition(const Vector2i& position) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Get the client size of the window /// \brief Get the client size of the window
@ -105,7 +105,7 @@ public:
/// \return Size of the window, in pixels /// \return Size of the window, in pixels
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual Vector2u getSize() const; Vector2u getSize() const override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Change the size of the rendering region of the window /// \brief Change the size of the rendering region of the window
@ -113,7 +113,7 @@ public:
/// \param size New size, in pixels /// \param size New size, in pixels
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void setSize(const Vector2u& size); void setSize(const Vector2u& size) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Change the title of the window /// \brief Change the title of the window
@ -121,7 +121,7 @@ public:
/// \param title New title /// \param title New title
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void setTitle(const String& title); void setTitle(const String& title) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Change the window's icon /// \brief Change the window's icon
@ -131,7 +131,7 @@ public:
/// \param pixels Pointer to the pixels in memory, format must be RGBA 32 bits /// \param pixels Pointer to the pixels in memory, format must be RGBA 32 bits
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void setIcon(unsigned int width, unsigned int height, const Uint8* pixels); void setIcon(unsigned int width, unsigned int height, const Uint8* pixels) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Show or hide the window /// \brief Show or hide the window
@ -139,7 +139,7 @@ public:
/// \param visible True to show, false to hide /// \param visible True to show, false to hide
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void setVisible(bool visible); void setVisible(bool visible) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Show or hide the mouse cursor /// \brief Show or hide the mouse cursor
@ -147,7 +147,7 @@ public:
/// \param visible True to show, false to hide /// \param visible True to show, false to hide
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void setMouseCursorVisible(bool visible); void setMouseCursorVisible(bool visible) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Clips or releases the mouse cursor /// \brief Clips or releases the mouse cursor
@ -155,7 +155,7 @@ public:
/// \param grabbed True to enable, false to disable /// \param grabbed True to enable, false to disable
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void setMouseCursorGrabbed(bool grabbed); void setMouseCursorGrabbed(bool grabbed) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Enable or disable automatic key-repeat /// \brief Enable or disable automatic key-repeat
@ -163,14 +163,14 @@ public:
/// \param enabled True to enable, false to disable /// \param enabled True to enable, false to disable
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void setKeyRepeatEnabled(bool enabled); void setKeyRepeatEnabled(bool enabled) override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Request the current window to be made the active /// \brief Request the current window to be made the active
/// foreground window /// foreground window
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void requestFocus(); void requestFocus() override;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Check whether the window has the input focus /// \brief Check whether the window has the input focus
@ -178,7 +178,7 @@ public:
/// \return True if window has focus, false otherwise /// \return True if window has focus, false otherwise
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual bool hasFocus() const; bool hasFocus() const override;
public: public:
@ -212,7 +212,7 @@ protected:
/// \brief Process incoming events from the operating system /// \brief Process incoming events from the operating system
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
virtual void processEvents(); void processEvents() override;
private: private: