X-Git-Url: https://eleni.mutantstargoat.com/git/?p=demo;a=blobdiff_plain;f=src%2Fstate_manager.h;fp=src%2Fstate_manager.h;h=0000000000000000000000000000000000000000;hp=489464401889b78be52900b1d9a818990db0edb9;hb=05d269a194496bcef85da78652b947f5bf1c9bcf;hpb=6cecb8f16f1863496884ca86790375dbb27138ba diff --git a/src/state_manager.h b/src/state_manager.h deleted file mode 100644 index 4894644..0000000 --- a/src/state_manager.h +++ /dev/null @@ -1,48 +0,0 @@ -#ifndef STATE_MANAGER_H_ -#define STATE_MANAGER_H_ - -#include -#include - -#include -#include - -struct State { - int num; - char *name; - float *data; -}; - -class StateManager { -private: - std::map statemap; - State *get_state(const char *name); - -public: - std::vector states; - - /* - adds a state returns an idx: - the num_floats indicates the number of floats that form - the state element. - For example: - a float value consists of 1 float => num_floats = 1, - a Vec2 consists of 2 floats, a Vec3 from 3, a Vec4 from 4 - - see also: - set_state(const char *name, const Mat4 &mat implementation) - */ - int add_state_element(const char *name, int num_floats); - - void set_state(const char *name, float value); - void set_state(const char *name, const Vec3 &vec); - void set_state(const char *name, const Vec4 &vec); - void set_state(const char *name, const Mat4 &mat); - - const State *get_state(const char *name) const; - const State *get_state(int idx) const; -}; - -extern StateManager state_manager; - -#endif // STATE_MANAGER_H_ \ No newline at end of file