Example #1
0
void CZClip::Reset(void)
{
	m_iZClipTop		= 64;		// arb. starting values, but must be at least 64 apart
	m_iZClipBottom	= -64;
	m_bEnabled		= false;

	Legalise();
}
Example #2
0
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();
}
Example #3
0
void CZClip::SetBottom(int iNewZ)
{
	m_iZClipBottom = iNewZ;

	Legalise();
}
Example #4
0
void CZClip::SetTop(int iNewZ)
{
	m_iZClipTop = iNewZ;

	Legalise();
}