Added Menu in namespace pae
This commit is contained in:
parent
2145d23994
commit
9e62dc1e03
|
@ -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
|
||||
|
|
|
@ -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),
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue