Ejemplo n.º 1
0
 /// \brief
 ///   Computes the hash value for this state group. This function has to be called prior to using the state group.
 ///
 /// This function always has to be called after setting up a new state group or after modifying an existing state group.
 /// It computes a hash which is internally used for optimization purposes, and additionally generates platforms-specific
 /// data which is critical to the use of the state group.
 inline void ComputeHash()
 {
   m_iHash = ComputeHashInternal();
 }
Ejemplo n.º 2
0
 inline bool IsHashValid() const
 {
   return m_iHash == ComputeHashInternal();
 }
Ejemplo n.º 3
0
 /// \brief
 ///   Computes the hash value for this state group. This function has to be called prior to using the state group.
 ///
 /// This function always has to be called after setting up a new state group or after modifying an existing state group.
 /// It computes a hash which is internally used for optimization purposes, and additionally generates platforms-specific
 /// data which is critical to the use of the state group.
 inline void ComputeHash()
 {
   ClampValuesToValidRange(); ///< TODO: Remove once this check is performed upon loading of binary files
   m_iHash = ComputeHashInternal();
 }