|
| BackendRenderTargetSFML (sf::RenderTarget &target) |
| Constructs the render target. More...
|
|
sf::RenderTarget * | getTarget () const |
| Returns the SFML render target on which the gui is being drawn. More...
|
|
void | setClearColor (const Color &color) override |
| Select the color that will be used by clearScreen. More...
|
|
void | clearScreen () override |
| Clears the screen, called at the beginning of each frame when gui.mainLoop() is called.
|
|
void | setView (FloatRect view, FloatRect viewport) override |
| Informs the render target about which part of the window is used for rendering. More...
|
|
void | drawGui (const std::shared_ptr< RootContainer > &root) override |
| Draws the gui and all of its widgets. More...
|
|
void | addClippingLayer (const RenderStates &states, FloatRect rect) override |
| Adds another clipping region. More...
|
|
void | removeClippingLayer () override |
| Removes the last added clipping region. More...
|
|
void | drawSprite (const RenderStates &states, const Sprite &sprite) override |
| Draws a texture. More...
|
|
void | drawVertexArray (const RenderStates &states, const Vertex *vertices, std::size_t vertexCount, const int *indices, std::size_t indexCount, const std::shared_ptr< BackendTexture > &texture) override |
| Draws a vertex array. This is called by the other draw functions when they are not overriden. More...
|
|
virtual void | setView (FloatRect view, FloatRect viewport) |
| Informs the render target about which part of the window is used for rendering. More...
|
|
virtual void | setView (FloatRect view, FloatRect viewport, Vector2f targetSize) |
| Informs the render target about which part of the window is used for rendering. More...
|
|
virtual | ~BackendRenderTarget ()=default |
| Virtual destructor.
|
|
virtual void | drawWidget (const RenderStates &states, const std::shared_ptr< Widget > &widget) |
| Draws a widget, if the widget is visible. More...
|
|
virtual void | drawBorders (const RenderStates &states, const Borders &borders, Vector2f size, Color color) |
| Draws borders inside a provided rectangle. More...
|
|
virtual void | drawFilledRect (const RenderStates &states, Vector2f size, Color color) |
| Draws a colored rectangle. More...
|
|
virtual void | drawText (const RenderStates &states, const Text &text) |
| Draws some text. More...
|
|
virtual void | drawTriangles (const RenderStates &states, const Vertex *vertices, std::size_t vertexCount, const int *indices=nullptr, std::size_t indexCount=0) |
| Draws one or more triangles (using the color that is specified in the vertices) More...
|
|
void | drawTriangles (const RenderStates &states, std::initializer_list< Vertex > vertices, std::initializer_list< int > indices={}) |
| Draws one or more triangles (using the color that is specified in the vertices) More...
|
|
virtual void | drawCircle (const RenderStates &states, float size, const Color &backgroundColor, float borderThickness=0, const Color &borderColor={}) |
| Draws a circle. More...
|
|
virtual void | drawRoundedRectangle (const RenderStates &states, const Vector2f &size, const Color &backgroundColor, float radius, const Borders &borders={0}, const Color &borderColor=Color::Black) |
| Draws a rounded rectangle. More...
|
|
Render target that uses SFML to draw the gui.