|
ComSquare
|
The SFML window that manage the update. More...
#include <QtSFML.hpp>
Public Member Functions | |
| void | openRom () |
| Open the select rom dialog and load a new one if the option is selected. More... | |
| void | reset () |
| Action called when clicking on the reset button. More... | |
| QtFullSFML (SNES &snes, QWidget *parent, const QPoint &position, const QSize &size, int frameRate=0) | |
| QtFullSFML (const QtFullSFML &)=delete | |
| QtFullSFML & | operator= (const QtFullSFML &)=delete |
| ~QtFullSFML () override=default | |
Public Member Functions inherited from ComSquare::Renderer::QtWidgetSFML | |
| QtWidgetSFML (QWidget *parent, const QPoint &position, const QSize &size, int frameRate=0) | |
| QtWidgetSFML (const QtWidgetSFML &)=delete | |
| QtWidgetSFML & | operator= (const QtWidgetSFML &)=delete |
| ~QtWidgetSFML () override=default | |
Public Member Functions inherited from ComSquare::Renderer::SFRenderer | |
| void | setWindowName (std::string &newWindowName) override |
| Set a new name to the window, if there is already a name it will be overwrite. More... | |
| void | drawScreen () override |
| Update the screen by printing the buffer. More... | |
| 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 | playAudio (std::span< int16_t > samples) override |
| Playing all samples from buffer. More... | |
| void | getEvents () |
| Get the inputs from the Window. More... | |
| void | createWindow (SNES &snes, int maxFPS) override |
| Use this function to create the window. More... | |
| SFRenderer (unsigned int height, unsigned int width) | |
| Constructor that return the window component of the SFML. More... | |
| SFRenderer (const SFRenderer &)=delete | |
| SFRenderer & | operator= (const SFRenderer &)=delete |
| ~SFRenderer () | |
Private Member Functions | |
| void | onUpdate () override |
| Function called to update this widget. More... | |
Private Attributes | |
| SNES & | _snes |
| The snes to update. More... | |
Additional Inherited Members | |
Public Slots inherited from ComSquare::Renderer::QtWidgetSFML | |
Public Attributes inherited from ComSquare::Renderer::SFRenderer | |
| bool | shouldExit = false |
| Tells to the program if the window has been closed, and therefore if he should stop. More... | |
Protected Attributes inherited from ComSquare::Renderer::SFRenderer | |
| sf::RenderWindow | _window |
| The Renderer for the window. More... | |
| sf::VideoMode | _videoMode |
| Video Mode containing the _height and _width of the window. More... | |
| sf::Color * | _pixelBuffer |
| The image that contain all of the pixels. More... | |
| sf::Sprite | _sprite |
| The sprite to render the array of pixels. More... | |
| sf::Texture | _texture |
| The texture to render the array of pixels. More... | |
| sf::SoundBuffer | _soundBuffer |
| The buffer containing samples to be played. More... | |
| sf::Sound | _sound |
| the sound played More... | |
The SFML window that manage the update.
| ComSquare::Renderer::QtFullSFML::QtFullSFML | ( | SNES & | snes, |
| QWidget * | parent, | ||
| const QPoint & | position, | ||
| const QSize & | size, | ||
| int | frameRate = 0 |
||
| ) |
|
delete |
|
overridedefault |
|
overrideprivatevirtual |
Function called to update this widget.
Implements ComSquare::Renderer::QtWidgetSFML.
| void ComSquare::Renderer::QtFullSFML::openRom | ( | ) |
Open the select rom dialog and load a new one if the option is selected.
|
delete |
| void ComSquare::Renderer::QtFullSFML::reset | ( | ) |
Action called when clicking on the reset button.
|
private |
The snes to update.
1.8.17