#include <GUIPicture.hpp>
Public Member Functions | |
GUIPicture (GUIManager *pManager) | |
Constructor. | |
GUIPicture (GUIManager *pManager, const std::string &name) | |
Constructor. | |
GUIPicture (GUIManager *pManager, const std::string &name, const std::string &texture) | |
Constructor. | |
virtual | ~GUIPicture () |
Destructor. | |
bool | load (Core::XMLNode *pNode) |
Load the widget. | |
virtual void | render (std::vector< GUIManager::Quad > &renderList) |
Render the widget. | |
void | adjustWidthToAspectRatio () |
Adjust width to texture aspect ratio. | |
void | adjustHeightToAspectRatio () |
Adjust height to texture aspect ratio. |
It is a simple widget which displays a picture (texture).
syBR::Game::GUIPicture::GUIPicture | ( | GUIManager * | pManager | ) |
Constructor.
Set name of the widget to an empty string
pManager | GUI manager using this widget |
syBR::Game::GUIPicture::GUIPicture | ( | GUIManager * | pManager, | |
const std::string & | name | |||
) |
Constructor.
Set name of the widget to an empty string
pManager | GUI manager using this widget | |
name | Name of the widget |
syBR::Game::GUIPicture::GUIPicture | ( | GUIManager * | pManager, | |
const std::string & | name, | |||
const std::string & | texture | |||
) |
Constructor.
pManager | GUI manager using this widget | |
name | Name of the widget | |
texture | Name of the texture of the picture widget |
syBR::Game::GUIPicture::~GUIPicture | ( | ) | [virtual] |
Destructor.
Release used resources.
bool syBR::Game::GUIPicture::load | ( | Core::XMLNode * | pNode | ) | [virtual] |
void syBR::Game::GUIPicture::render | ( | std::vector< GUIManager::Quad > & | renderList | ) | [virtual] |
Render the widget.
Render the widget and its subcomponents.
renderList | List of renderables where all the renderables of this widget and its subcomponents will be pushed back |
Reimplemented from syBR::Game::GUIWidget.
void syBR::Game::GUIPicture::adjustWidthToAspectRatio | ( | ) |
Adjust width to texture aspect ratio.
void syBR::Game::GUIPicture::adjustHeightToAspectRatio | ( | ) |
Adjust height to texture aspect ratio.
Copyright © 2008 by Sebastien Frippiat
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License.
Last modified Tue Dec 30 17:57:33 2008