|
|
| BackendRenderTargetSDL (SDL_Renderer *renderer) |
| | Default constructor.
|
| |
| void | setClearColor (const Color &color) override |
| | Select the color that will be used by clearScreen.
|
| |
| void | clearScreen () override |
| | Clears the screen, called at the beginning of each frame when gui.mainLoop() is called.
|
| |
| void | setView (FloatRect view, FloatRect viewport, Vector2f targetSize) override |
| | Informs the render target about which part of the window is used for rendering.
|
| |
| void | drawGui (const std::shared_ptr< RootContainer > &root) override |
| | Draws the gui and all of its widgets.
|
| |
| void | drawVertexArray (const RenderStates &states, const Vertex *vertices, std::size_t vertexCount, const unsigned 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.
|
| |
|
| BackendRenderTarget (const BackendRenderTarget &)=delete |
| |
|
| BackendRenderTarget (BackendRenderTarget &&)=delete |
| |
|
BackendRenderTarget & | operator= (const BackendRenderTarget &)=delete |
| |
|
BackendRenderTarget & | operator= (BackendRenderTarget &&)=delete |
| |
|
| BackendRenderTarget ()=default |
| | Default constructor.
|
| |
|
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.
|
| |
| virtual void | addClippingLayer (const RenderStates &states, FloatRect rect) |
| | Adds another clipping region.
|
| |
| virtual void | removeClippingLayer () |
| | Removes the last added clipping region.
|
| |
| virtual void | drawBorders (const RenderStates &states, const Borders &borders, Vector2f size, Color color) |
| | Draws borders inside a provided rectangle.
|
| |
| virtual void | drawFilledRect (const RenderStates &states, Vector2f size, Color color) |
| | Draws a colored rectangle.
|
| |
| virtual void | drawSprite (const RenderStates &states, const Sprite &sprite) |
| | Draws a texture.
|
| |
| virtual void | drawText (const RenderStates &states, const Text &text) |
| | Draws some text.
|
| |
| virtual void | drawTextOutline (const RenderStates &states, const Text &text) |
| | Draws only the outline of some text.
|
| |
| virtual void | drawTextWithoutOutline (const RenderStates &states, const Text &text) |
| | Draws some text, but without rendering its outline.
|
| |
| virtual void | drawTriangle (const RenderStates &states, const Vertex &point1, const Vertex &point2, const Vertex &point3) |
| | Draws a single triangles (using the color that is specified in the vertices)
|
| |
| virtual void | drawCircle (const RenderStates &states, float size, const Color &backgroundColor, float borderThickness=0, const Color &borderColor={}) |
| | Draws a circle.
|
| |
| 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.
|
| |
| Vector2f | getPixelsPerPoint () const |
| | Returns the current mapping between the screen pixels and the points in the current view.
|
| |
Render target implementation that makes use of SDL_Renderer.