1 #ifndef LXGUI_GUI_SFML_RENDER_TARGET_HPP
2 #define LXGUI_GUI_SFML_RENDER_TARGET_HPP
4 #include "lxgui/gui_render_target.hpp"
5 #include "lxgui/impl/gui_sfml_material.hpp"
6 #include "lxgui/utils.hpp"
89 void update_view_matrix_()
const;
91 std::shared_ptr<sfml::material> texture_;
92 sf::RenderTexture* render_texture_ =
nullptr;
Holds a single color (float RGBA, 128 bits)
A place to render things (the screen, a texture, ...)
A place to render things (the screen, a texture, ...)
void clear(const color &c) override
Clears the content of this render_target.
std::weak_ptr< sfml::material > get_material()
Returns the associated texture for rendering.
render_target(const vector2ui &dimensions, material::filter filt=material::filter::none)
Constructor.
bounds2f get_rect() const override
Returns this render target's pixel rect.
sf::RenderTexture * get_render_texture()
Returns the underlying SFML render texture object. return The underlying SFML render texture object.
void end() override
Ends rendering on this target.
void save_to_file(std::string filename) const override
Saves the content of this render target into a file.
void begin() override
Begins rendering on this target.
bool set_dimensions(const vector2ui &dimensions) override
Sets this render target's dimensions.
vector2ui get_canvas_dimensions() const override
Returns this render target's canvas dimension.