|
ComSquare
|
#include <QtSFML.hpp>
Public Member Functions | |
| void | createWindow (SNES &snes, int maxFPS) override |
| Use this function to create the window. More... | |
| QtSFMLWindow (int height, int width) | |
| Constructor that return a SFML renderer inside a QT window. More... | |
| QtSFMLWindow (const QtSFMLWindow &)=delete | |
| QtSFMLWindow & | operator= (const QtSFMLWindow &)=delete |
| ~QtSFMLWindow ()=default | |
Public Member Functions inherited from ComSquare::Renderer::QtSFML | |
| void | putPixel (unsigned y, unsigned x, uint32_t rgba) override |
| Add a pixel to the buffer to the coordinates x, y with the color rgba. More... | |
| void | drawScreen () override |
| This function doesn't do anything because QT internally handle drawing to the screen. More... | |
| void | playAudio (std::span< int16_t > samples) override |
| Playing all samples from buffer. More... | |
| void | setWindowName (std::string &newWindowName) override |
| Set a new name to the window, if there is already a name it will be overwrite. More... | |
| QtSFML (QWidget *parentWidget) | |
| Constructor that return a SFML renderer inside a QT widget. More... | |
| QtSFML (const QtSFML &)=delete | |
| QtSFML & | operator= (const QtSFML &)=delete |
| ~QtSFML ()=default | |
Private Attributes | |
| QMainWindow | _window |
| The main window that the app reside on. More... | |
Additional Inherited Members | |
Protected Attributes inherited from ComSquare::Renderer::QtSFML | |
| QtFullSFML * | _sfWidget = nullptr |
| The SFML widget. More... | |
| ComSquare::Renderer::QtSFMLWindow::QtSFMLWindow | ( | int | height, |
| int | width | ||
| ) |
Constructor that return a SFML renderer inside a QT window.
| height | _height of the window. |
| width | _width of the window. |
|
delete |
|
default |
|
overridevirtual |
Use this function to create the window.
| maxFPS | The number of FPS you aim to run on. |
Reimplemented from ComSquare::Renderer::QtSFML.
|
delete |
|
private |
The main window that the app reside on.
1.8.17