Abstract type for implementation specific management. More...
#include <gui_manager.hpp>
Public Member Functions | |
| manager_impl () | |
| Constructor. | |
| virtual | ~manager_impl () |
| Destructor. | |
| void | set_parent (manager *pParent) |
| Gives a pointer to the base class. | |
| virtual void | begin (utils::refptr< render_target > pTarget=nullptr) const =0 |
| Begins rendering on a particular render target. | |
| virtual void | end () const =0 |
| Ends rendering. | |
| virtual void | render_quad (const quad &mQuad) const =0 |
| Renders a quad. | |
| virtual void | render_quads (const quad &mQuad, const std::vector< std::array< vertex, 4 >> &lQuadList) const =0 |
| Renders a set of quads. | |
| virtual utils::refptr< sprite > | create_sprite (utils::refptr< material > pMat) const |
| Creates a new sprite. | |
| virtual utils::refptr< sprite > | create_sprite (utils::refptr< material > pMat, float fWidth, float fHeight) const |
| Creates a new sprite. | |
| virtual utils::refptr< sprite > | create_sprite (utils::refptr< material > pMat, float fU, float fV, float fWidth, float fHeight) const |
| Creates a new sprite. | |
| virtual utils::refptr< material > | create_material (const std::string &sFileName) const =0 |
| Creates a new material from a texture file. | |
| virtual utils::refptr< material > | create_material (const color &mColor) const =0 |
| Creates a new material from a plain color. | |
| virtual utils::refptr< material > | create_material (utils::refptr< render_target > pRenderTarget) const =0 |
| Creates a new material from a render target. | |
| virtual utils::refptr < render_target > | create_render_target (uint uiWidth, uint uiHeight) const =0 |
| Creates a new render target. | |
| virtual utils::refptr< font > | create_font (const std::string &sFontFile, uint uiSize) const =0 |
| Creates a new font. | |
Protected Attributes | |
| manager * | pParent_ |
Abstract type for implementation specific management.
Definition at line 786 of file gui_manager.hpp.
| gui::manager_impl::manager_impl | ( | ) |
Constructor.
Definition at line 1726 of file gui_manager.cpp.
| gui::manager_impl::~manager_impl | ( | ) | [virtual] |
Destructor.
Definition at line 1730 of file gui_manager.cpp.
| virtual void gui::manager_impl::begin | ( | utils::refptr< render_target > | pTarget = nullptr |
) | const [pure virtual] |
Begins rendering on a particular render target.
| pTarget | The render target (main screen if nullptr) |
| virtual utils::refptr<font> gui::manager_impl::create_font | ( | const std::string & | sFontFile, | |
| uint | uiSize | |||
| ) | const [pure virtual] |
Creates a new font.
| sFontFile | The file from which to read the font | |
| uiSize | The requested size of the characters (in points) |
Implemented in gui::gl::manager.
| virtual utils::refptr<material> gui::manager_impl::create_material | ( | utils::refptr< render_target > | pRenderTarget | ) | const [pure virtual] |
| virtual utils::refptr<material> gui::manager_impl::create_material | ( | const color & | mColor | ) | const [pure virtual] |
Creates a new material from a plain color.
| mColor | The color to use |
Implemented in gui::gl::manager.
| virtual utils::refptr<material> gui::manager_impl::create_material | ( | const std::string & | sFileName | ) | const [pure virtual] |
| virtual utils::refptr<render_target> gui::manager_impl::create_render_target | ( | uint | uiWidth, | |
| uint | uiHeight | |||
| ) | const [pure virtual] |
Creates a new render target.
| uiWidth | The width of the render target | |
| uiHeight | The height of the render target |
Implemented in gui::gl::manager.
| utils::refptr< sprite > gui::manager_impl::create_sprite | ( | utils::refptr< material > | pMat, | |
| float | fU, | |||
| float | fV, | |||
| float | fWidth, | |||
| float | fHeight | |||
| ) | const [virtual] |
Creates a new sprite.
| pMat | The material with which to create the sprite | |
| fU | The top left corner of the sprite in the material | |
| fV | The top left corner of the sprite in the material | |
| fWidth | The width of the sprite | |
| fHeight | The height of the sprite |
Definition at line 1744 of file gui_manager.cpp.
| utils::refptr< sprite > gui::manager_impl::create_sprite | ( | utils::refptr< material > | pMat, | |
| float | fWidth, | |||
| float | fHeight | |||
| ) | const [virtual] |
Creates a new sprite.
| pMat | The material with which to create the sprite | |
| fWidth | The width of the sprite | |
| fHeight | The height of the sprite |
Definition at line 1739 of file gui_manager.cpp.
| utils::refptr< sprite > gui::manager_impl::create_sprite | ( | utils::refptr< material > | pMat | ) | const [virtual] |
Creates a new sprite.
Definition at line 1734 of file gui_manager.cpp.
| virtual void gui::manager_impl::end | ( | ) | const [pure virtual] |
Ends rendering.
Implemented in gui::gl::manager.
| virtual void gui::manager_impl::render_quad | ( | const quad & | mQuad | ) | const [pure virtual] |
Renders a quad.
| mQuad | The quad to render on the current render target |
Implemented in gui::gl::manager.
| virtual void gui::manager_impl::render_quads | ( | const quad & | mQuad, | |
| const std::vector< std::array< vertex, 4 >> & | lQuadList | |||
| ) | const [pure virtual] |
Renders a set of quads.
| mQuad | The base quad to use for rendering (material, blending, ...) | |
| lQuadList | The list of the quads you want to render |
Implemented in gui::gl::manager.
| void gui::manager_impl::set_parent | ( | manager * | pParent | ) |
Gives a pointer to the base class.
Definition at line 1750 of file gui_manager.cpp.
manager* gui::manager_impl::pParent_ [protected] |
Definition at line 911 of file gui_manager.hpp.
1.6.1