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) ); }
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 ); } }
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 ); } }
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) ); }
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] ); } }
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) ); }
void Transform::feedHashGenerator( util::HashGenerator & hg ) const { Group::feedHashGenerator( hg ); hg.update( reinterpret_cast<const unsigned char *>(&m_trafo), sizeof(m_trafo) ); }
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) ); }
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()) ); }