当前位置: 首页>>代码示例>>C++>>正文


C++ CFloatInput::Init方法代码示例

本文整理汇总了C++中CFloatInput::Init方法的典型用法代码示例。如果您正苦于以下问题:C++ CFloatInput::Init方法的具体用法?C++ CFloatInput::Init怎么用?C++ CFloatInput::Init使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CFloatInput的用法示例。


在下文中一共展示了CFloatInput::Init方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: Init

bool CPupilProxy::Init( IMaterial *pMaterial, KeyValues *pKeyValues )
{
	char const* pAnimatedTextureVarName = pKeyValues->GetString( "TextureVar" );
	if( !pAnimatedTextureVarName )
		return false;

	bool foundVar;
	m_pAnimatedTextureVar = pMaterial->FindVar( pAnimatedTextureVarName, &foundVar, false );
	if( !foundVar )
		return false;

	char const* pAnimatedTextureFrameNumVarName = pKeyValues->GetString( "TextureFrameNumVar" );
	if( !pAnimatedTextureFrameNumVarName )
		return false;

	m_pAnimatedTextureFrameNumVar = pMaterial->FindVar( pAnimatedTextureFrameNumVarName, &foundVar, false );
	if( !foundVar )
		return false;

	m_pLightingVar = pMaterial->FindVar( "$lighting", &foundVar, false );
	if( !foundVar )
	{
		Warning("Materials using the pupil proxy must have a field called $lighting which has a value of 0.5!\n" );
		return false;
	}

	m_flPupilCloseRate.Init( pMaterial, pKeyValues, "PupilCloseRate", DEFAULT_CLOSE_PUPIL_RATE );
	m_flPupilOpenRate.Init( pMaterial, pKeyValues, "PupilOpenRate", DEFAULT_OPEN_PUPIL_RATE );

	return true;
}
开发者ID:paralin,项目名称:hl2sdk,代码行数:31,代码来源:proxypupil.cpp

示例2: Init

bool CWrapMinMaxProxy::Init( IMaterial *pMaterial, KeyValues *pKeyValues )
{
	if (!CFunctionProxy::Init( pMaterial, pKeyValues ))
		return false;

	if (!m_flMinVal.Init( pMaterial, pKeyValues, "minVal", 0 ))
		return false;

	if (!m_flMaxVal.Init( pMaterial, pKeyValues, "maxVal", 1 ))
		return false;

	return true;
}
开发者ID:Au-heppa,项目名称:source-sdk-2013,代码行数:13,代码来源:mathproxy.cpp

示例3: Init

bool CTextureScrollMaterialProxy::Init( IMaterial *pMaterial, KeyValues *pKeyValues )
{
	char const* pScrollVarName = pKeyValues->GetString( "textureScrollVar" );
	if( !pScrollVarName )
		return false;

	bool foundVar;
	m_pTextureScrollVar = pMaterial->FindVar( pScrollVarName, &foundVar, false );
	if( !foundVar )
		return false;

	m_TextureScrollRate.Init( pMaterial, pKeyValues, "textureScrollRate", 1.0f );
	m_TextureScrollAngle.Init( pMaterial, pKeyValues, "textureScrollAngle", 0.0f );
	m_TextureScale.Init( pMaterial, pKeyValues, "textureScale", 1.0f );

	return true;
}
开发者ID:BenLubar,项目名称:SwarmDirector2,代码行数:17,代码来源:texturescrollmaterialproxy.cpp

示例4: Init

bool CEntityRandomProxy::Init( IMaterial *pMaterial, KeyValues *pKeyValues )
{
	if (!CResultProxy::Init( pMaterial, pKeyValues ))
		return false;

	if (!m_Factor.Init( pMaterial, pKeyValues, "scale", 1 ))
		return false;

	return true;
}
开发者ID:Entropy-Soldier,项目名称:ges-legacy-code,代码行数:10,代码来源:proxyplayer.cpp

示例5: Init

bool CPlayerDamageTimeProxy::Init( IMaterial *pMaterial, KeyValues *pKeyValues )
{
	if (!CResultProxy::Init( pMaterial, pKeyValues ))
		return false;

	if (!m_Factor.Init( pMaterial, pKeyValues, "scale", 1.0f ))
		return false;

	return true;
}
开发者ID:RaisingTheDerp,项目名称:raisingthebar,代码行数:10,代码来源:ProxyTFPlayer.cpp

示例6: Init

bool CObjectPowerProxy::Init( IMaterial *pMaterial, KeyValues *pKeyValues )
{
	if (!CResultProxy::Init( pMaterial, pKeyValues ))
		return false;

	if (!m_Factor.Init( pMaterial, pKeyValues, "scale", 1 ))
		return false;

	return true;
}
开发者ID:Deathreus,项目名称:TF2Classic,代码行数:10,代码来源:c_baseobject.cpp

示例7: Init

bool CPlayerFortsTimerProxy::Init( IMaterial *pMaterial, KeyValues *pKeyValues )
{
	if (!CResultProxy::Init( pMaterial, pKeyValues ))
		return false;

	if (!m_RangeMax.Init( pMaterial, pKeyValues, "rangeMax", 360 ))
		return false;

	return true;
}
开发者ID:SCell555,项目名称:bisonours-party,代码行数:10,代码来源:proxyplayer.cpp

示例8: Init

bool CMatrixRotateProxy::Init( IMaterial *pMaterial, KeyValues *pKeyValues )
{
    // All are optional...
    m_pAxisVar = NULL;

    bool bFoundVar;
    char const* pVarName = pKeyValues->GetString( "axisVar" );
    if( pVarName && pVarName[0] )
    {
        m_pAxisVar = pMaterial->FindVar( pVarName, &bFoundVar, false );
    }

    if (!m_Angle.Init( pMaterial, pKeyValues, "angle", 0 ))
        return false;

    return CResultProxy::Init( pMaterial, pKeyValues );
}
开发者ID:GOGIBERRY,项目名称:source-sdk-2013,代码行数:17,代码来源:matrixproxy.cpp


注:本文中的CFloatInput::Init方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。