lxgui
|
A place to render things (the screen, a texture, ...) More...
#include <gui_render_target.hpp>
Public Member Functions | |
render_target ()=default | |
Constructor. | |
virtual | ~render_target ()=default |
Destructor. | |
render_target (const render_target &)=delete | |
Non-copiable. | |
render_target (render_target &&)=delete | |
Non-movable. | |
render_target & | operator= (const render_target &)=delete |
Non-copiable. | |
render_target & | operator= (render_target &&)=delete |
Non-movable. | |
virtual void | begin ()=0 |
Begins rendering on this target. | |
virtual void | end ()=0 |
Ends rendering on this target. | |
virtual void | clear (const color &c)=0 |
Clears the content of this render_target. | |
virtual bounds2f | get_rect () const =0 |
Returns this render target's pixel rect. | |
virtual bool | set_dimensions (const vector2ui &dimensions)=0 |
Sets this render target's dimensions. | |
virtual vector2ui | get_canvas_dimensions () const =0 |
Returns this render target's canvas dimension. | |
virtual void | save_to_file (std::string filename) const =0 |
Saves the content of this render target into a file. | |
A place to render things (the screen, a texture, ...)
Definition at line 16 of file gui_render_target.hpp.
|
default |
Constructor.
|
virtualdefault |
Destructor.
Reimplemented in lxgui::gui::gl::render_target.
|
delete |
Non-copiable.
|
delete |
Non-movable.
|
pure virtual |
Begins rendering on this target.
Implemented in lxgui::gui::gl::render_target, lxgui::gui::sdl::render_target, and lxgui::gui::sfml::render_target.
|
pure virtual |
Clears the content of this render_target.
c | The color to use as background |
Implemented in lxgui::gui::gl::render_target, lxgui::gui::sdl::render_target, and lxgui::gui::sfml::render_target.
|
pure virtual |
Ends rendering on this target.
Implemented in lxgui::gui::gl::render_target, lxgui::gui::sdl::render_target, and lxgui::gui::sfml::render_target.
|
pure virtual |
Returns this render target's canvas dimension.
Implemented in lxgui::gui::gl::render_target, lxgui::gui::sdl::render_target, and lxgui::gui::sfml::render_target.
|
pure virtual |
Returns this render target's pixel rect.
Implemented in lxgui::gui::gl::render_target, lxgui::gui::sdl::render_target, and lxgui::gui::sfml::render_target.
|
delete |
Non-copiable.
|
delete |
Non-movable.
|
pure virtual |
Saves the content of this render target into a file.
filename | The path of the file to save to |
Implemented in lxgui::gui::gl::render_target, lxgui::gui::sdl::render_target, and lxgui::gui::sfml::render_target.
|
pure virtual |
Sets this render target's dimensions.
dimensions | The new dimensions (in pixels) |
Implemented in lxgui::gui::gl::render_target, lxgui::gui::sdl::render_target, and lxgui::gui::sfml::render_target.