Esempio n. 1
0
 void FrustumCamera::feedHashGenerator( util::HashGenerator & hg ) const
 {
   Camera::feedHashGenerator( hg );
   hg.update( reinterpret_cast<const unsigned char *>(&m_farDist), sizeof(m_farDist) );
   hg.update( reinterpret_cast<const unsigned char *>(&m_nearDist), sizeof(m_nearDist) );
   hg.update( reinterpret_cast<const unsigned char *>(&m_windowOffset), sizeof(m_windowOffset) );
   hg.update( reinterpret_cast<const unsigned char *>(&m_windowSize), sizeof(m_windowSize) );
   hg.update( reinterpret_cast<const unsigned char *>(&m_windowRegion), sizeof(m_windowRegion) );
 }
Esempio n. 2
0
 void IndexSet::feedHashGenerator( util::HashGenerator & hg ) const
 {
   hg.update( reinterpret_cast<const unsigned char *>(&m_dataType), sizeof(m_dataType) );
   hg.update( reinterpret_cast<const unsigned char *>(&m_numberOfIndices), sizeof(m_numberOfIndices) );
   hg.update( reinterpret_cast<const unsigned char *>(&m_primitiveRestartIndex), sizeof(m_primitiveRestartIndex) );
   // TODO: should we add hash key handling to Buffer ?
   if ( m_buffer )
   {
     hg.update( m_buffer );
   }
 }
Esempio n. 3
0
 void VertexAttributeSet::feedHashGenerator( util::HashGenerator & hg ) const
 {
   Object::feedHashGenerator( hg );
   hg.update( reinterpret_cast<const unsigned char *>(&m_enableFlags), sizeof(m_enableFlags) );
   hg.update( reinterpret_cast<const unsigned char *>(&m_normalizeEnableFlags), sizeof(m_normalizeEnableFlags) );
   for ( AttributeContainer::const_iterator it = m_vattribs.begin() ; it != m_vattribs.end() ; ++it )
   {
     hg.update( reinterpret_cast<const unsigned char *>(&it->first), sizeof(it->first) );
     it->second.feedHashGenerator( hg );
   }
 }
Esempio n. 4
0
 void Camera::feedHashGenerator( util::HashGenerator & hg ) const
 {
   Object::feedHashGenerator( hg );
   for ( HeadLightContainer::const_iterator hlcci = m_headLights.begin() ; hlcci != m_headLights.end() ; ++hlcci )
   {
     hg.update( *hlcci );
   }
   hg.update( reinterpret_cast<const unsigned char *>(&m_orientation), sizeof(m_orientation) );
   hg.update( reinterpret_cast<const unsigned char *>(&m_position), sizeof(m_position) );
   hg.update( reinterpret_cast<const unsigned char *>(&m_focusDist), sizeof(m_focusDist) );
 }
Esempio n. 5
0
 void Group::feedHashGenerator( util::HashGenerator & hg ) const
 {
   Node::feedHashGenerator( hg );
   for ( size_t i=0 ; i<m_children.size() ; ++i )
   {
     hg.update( m_children[i] );
   }
   for ( size_t i=0 ; i<m_clipPlanes.size() ; ++i )
   {
     hg.update( m_clipPlanes[i] );
   }
 }
Esempio n. 6
0
 void Switch::feedHashGenerator( util::HashGenerator & hg ) const
 {
   Group::feedHashGenerator( hg );
   for ( std::map<MaskKey,SwitchMask>::const_iterator it = m_masks.begin() ; it != m_masks.end() ; ++it )
   {
     hg.update( reinterpret_cast<const unsigned char *>(&it->first), sizeof(it->first) );
     for ( SwitchMask::const_iterator smit = it->second.begin() ; smit != it->second.end() ; ++smit )
     {
       hg.update( reinterpret_cast<const unsigned char *>(&*smit), sizeof(*smit) );
     }
   }
   hg.update( reinterpret_cast<const unsigned char *>(&m_activeMaskKey), sizeof(m_activeMaskKey) );
 }
Esempio n. 7
0
 void Transform::feedHashGenerator( util::HashGenerator & hg ) const
 {
   Group::feedHashGenerator( hg );
   hg.update( reinterpret_cast<const unsigned char *>(&m_trafo), sizeof(m_trafo) );
 }
Esempio n. 8
0
 void Billboard::feedHashGenerator( util::HashGenerator & hg ) const
 {
   Group::feedHashGenerator( hg );
   hg.update( reinterpret_cast<const unsigned char *>(&m_alignment), sizeof(m_alignment) );
   hg.update( reinterpret_cast<const unsigned char *>(&m_rotationAxis), sizeof(m_rotationAxis) );
 }
Esempio n. 9
0
 void ParameterGroupData::feedHashGenerator( util::HashGenerator & hg ) const
 {
   Object::feedHashGenerator( hg );
   hg.update( m_parameterGroupSpec );
   hg.update( reinterpret_cast<const unsigned char *>(m_data.data()), dp::checked_cast<unsigned int>(m_data.size()) );
 }