Added Menu in namespace pae

This commit is contained in:
Thomas FORGIONE 2015-03-14 11:28:49 +01:00
parent 2145d23994
commit 9e62dc1e03
3 changed files with 11 additions and 1 deletions

View File

@ -37,6 +37,9 @@
#include <Animation/AnimatedMesh.hpp>
namespace pae
{
///////////////////////////////////////////////////////
/// \ingroup animation
/// \brief A menu drawable with SFML for animation of meshes
@ -85,4 +88,6 @@ class Menu : public sf::Drawable
unsigned int fontSize; ///< size of the font
};
} // namespace pae
#endif // MENU_HPP

View File

@ -100,7 +100,7 @@ int main(int argc, char *argv[])
auto mesh = std::make_shared<pae::AnimatedMesh>(skeleton);
auto menu = Menu{mesh};
auto menu = pae::Menu{mesh};
// Création de la fenêtre
sf::RenderWindow window(sf::VideoMode(WIDTH, HEIGHT),

View File

@ -33,6 +33,9 @@
#include <Animation/Menu.hpp>
namespace pae
{
Menu::Menu(std::shared_ptr<pae::AnimatedMesh> const& mesh, unsigned int nbPatellas, std::string const& path, float rotationSpeed, unsigned int fontSize) :
mesh(mesh),
textsMenu{},
@ -166,3 +169,5 @@ void Menu::draw(sf::RenderTarget& target, sf::RenderStates states) const
target.popGLStates();
}
} // namespace pae