Adding a base class for a QT window

This commit is contained in:
Anonymus Raccoon
2020-02-16 16:53:18 +01:00
parent 6ff4de3e0b
commit c16ce36105
24 changed files with 159 additions and 74 deletions
+3 -3
View File
@@ -14,7 +14,7 @@ namespace ComSquare::Renderer
public:
//! @brief Set a new name to the window, if there is already a name it will be overwrite.
//! @param newWindowName new title for the window.
void setWindowName(std::string newWindowName) override;
void setWindowName(std::string &newWindowName) override;
//! @brief Update the screen by printing the buffer.
void drawScreen() override;
//! @brief Add a pixel to the buffer to the coordinates x, y with the color rgba.
@@ -28,8 +28,8 @@ namespace ComSquare::Renderer
//! @param maxFPS The number of FPS you aim to run on.
void createWindow(SNES &snes, int maxFPS) override;
//! @brief Constructor that return the window component of the SFML.
//! @param height height of the window.
//! @param width width of the window.
//! @param height _height of the window.
//! @param width _width of the window.
//! @param maxFPS the number of maximum FPS for the window.
NoRenderer(unsigned int height, unsigned int width, int maxFPS);
NoRenderer(const NoRenderer &) = default;