LoadingState.hpp 886 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef FREESHOP_LOADINGSTATE_HPP
  2. #define FREESHOP_LOADINGSTATE_HPP
  3. #include "State.hpp"
  4. #include "../TweenObjects.hpp"
  5. #include "../Util.hpp"
  6. #include "../LoadInformations.hpp"
  7. #include <cpp3ds/Graphics/Sprite.hpp>
  8. #include <cpp3ds/Graphics/Texture.hpp>
  9. #include <cpp3ds/System/Clock.hpp>
  10. #include <cpp3ds/Graphics/RectangleShape.hpp>
  11. #include <cpp3ds/Graphics/Text.hpp>
  12. namespace FreeShop {
  13. class LoadingState : public State
  14. {
  15. public:
  16. LoadingState(StateStack& stack, Context& context, StateCallback callback);
  17. virtual void renderTopScreen(cpp3ds::Window& window);
  18. virtual void renderBottomScreen(cpp3ds::Window& window);
  19. virtual bool update(float delta);
  20. virtual bool processEvent(const cpp3ds::Event& event);
  21. private:
  22. cpp3ds::RectangleShape m_background;
  23. cpp3ds::Text m_icon;
  24. cpp3ds::Clock m_rotateClock;
  25. };
  26. } // namespace FreeShop
  27. #endif // FREESHOP_LOADINGSTATE_HPP