#include <SFRenderer.hpp>
|
| void | setWindowName (std::string) 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 (int x, int y, uint8_t rgba) override |
| | Add a pixel to the buffer to the coordinates x, y with the color rgba. More...
|
| |
|
| bool | shouldExit |
| | Tells to the program if the window has been closed, and therefore if he should stop. More...
|
| |
◆ drawScreen()
| void ComSquare::Renderer::SFRenderer::drawScreen |
( |
| ) |
|
|
overridevirtual |
◆ putPixel()
| void ComSquare::Renderer::SFRenderer::putPixel |
( |
int |
x, |
|
|
int |
y, |
|
|
uint8_t |
rgba |
|
) |
| |
|
overridevirtual |
Add a pixel to the buffer to the coordinates x, y with the color rgba.
- Parameters
-
| X | horizontal index. |
| Y | vertical index. |
| rgba | : The color of the pixel. |
Implements ComSquare::Renderer::IRenderer.
◆ setWindowName()
| void ComSquare::Renderer::SFRenderer::setWindowName |
( |
std::string |
| ) |
|
|
overridevirtual |
Set a new name to the window, if there is already a name it will be overwrite.
- Parameters
-
| A | new title for the window. |
Implements ComSquare::Renderer::IRenderer.
◆ videoMode
| sf::VideoMode ComSquare::Renderer::SFRenderer::videoMode |
|
private |
Video Mode containing the height and width of the window.
◆ window
| sf::Window ComSquare::Renderer::SFRenderer::window |
|
private |
The documentation for this class was generated from the following files: