#ifndef TRIANGLES_STATE_HPP #define TRIANGLES_STATE_HPP #include #include #include #include namespace Tri { class State { public: State(int argc, char **argv); ~State(); /* * 0 - display help * 1 - is running */ private: typedef std::bitset<64> BitsetType; BitsetType flags; unsigned int width; unsigned int height; const sf::Time dt; sf::RenderWindow window; std::vector tris; sf::ConvexShape currentTri; enum CurrentState { NONE, FIRST, SECOND, THIRD } currentTri_state; sf::Event event; public: void handle_events(); void update(); void draw(); unsigned int get_width(); unsigned int get_height(); const BitsetType get_flags() const; }; } #endif