void CZClip::Reset(void) { m_iZClipTop = 64; // arb. starting values, but must be at least 64 apart m_iZClipBottom = -64; m_bEnabled = false; Legalise(); }
CZClip::CZClip() { LONG lSize = sizeof( m_bEnabled ); if( !LoadRegistryInfo( "radiant_ZClipEnabled", &m_bEnabled, &lSize ) ) { m_bEnabled = false; } lSize = sizeof( m_iZClipTop ); if( !LoadRegistryInfo( "radiant_ZClipTop", &m_iZClipTop, &lSize ) ) { m_iZClipTop = 64; } lSize = sizeof( m_iZClipBottom ); if( !LoadRegistryInfo( "radiant_ZClipBottom", &m_iZClipBottom, &lSize ) ) { m_iZClipBottom = -64; } Legalise(); }
void CZClip::SetBottom(int iNewZ) { m_iZClipBottom = iNewZ; Legalise(); }
void CZClip::SetTop(int iNewZ) { m_iZClipTop = iNewZ; Legalise(); }