diff options
Diffstat (limited to 'retrace/daemon/glframe_retrace_interface.hpp')
-rw-r--r-- | retrace/daemon/glframe_retrace_interface.hpp | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/retrace/daemon/glframe_retrace_interface.hpp b/retrace/daemon/glframe_retrace_interface.hpp index 8badec99..61fba458 100644 --- a/retrace/daemon/glframe_retrace_interface.hpp +++ b/retrace/daemon/glframe_retrace_interface.hpp @@ -259,29 +259,31 @@ enum UniformDimension { k4x4 }; -// Serializable asynchronous callbacks made from remote -// implementations of IFrameRetrace. -enum StateItem { - CULL_FACE = 0x0B44, - CULL_FACE_MODE = 0x0B45, - INVALID_NAME = -1, -}; - struct StateKey { - StateItem name; - int index; - - StateKey() : name(INVALID_NAME), index(0) {} - StateKey(StateItem n, int i) : name(n), index(i) {} + std::string group; + std::string path; + std::string name; + + StateKey() {} + StateKey(const std::string _group, + const std::string _path, + const std::string _name) + : group(_group), path(_path), name(_name) {} bool operator<(const StateKey &o) const { if (name < o.name) return true; if (name > o.name) return false; - return index < o.index; + if (path < o.path) + return true; + if (path > o.path) + return false; + return group < o.group; } }; +// Serializable asynchronous callbacks made from remote +// implementations of IFrameRetrace. class OnFrameRetrace { public: typedef std::vector<unsigned char> uvec; |