當前位置: 首頁>>代碼示例>>C++>>正文


C++ TList::Num方法代碼示例

本文整理匯總了C++中TList::Num方法的典型用法代碼示例。如果您正苦於以下問題:C++ TList::Num方法的具體用法?C++ TList::Num怎麽用?C++ TList::Num使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在TList的用法示例。


在下文中一共展示了TList::Num方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。

示例1: emit_sampler_state_declarations

void emit_sampler_state_declarations( const TList< wrSamplerState >& samplerStates, mxTextWriter & tw )
{
	for( UINT iSamplerState = 0;
		iSamplerState < samplerStates.Num();
		iSamplerState++ )
	{
		const wrSamplerState& samplerState = samplerStates[ iSamplerState ];
		tw	<< MXC("extern SamplerState samplerState_") << samplerState.name << MXC(";");
		emit_source_location_comment( samplerState.pos, tw );
	}
}
開發者ID:S-V,項目名稱:Lollipop,代碼行數:11,代碼來源:HLSLWrapperGenerator.cpp

示例2: emit_render_target_declarations

void emit_render_target_declarations( const TList< wrRenderTarget >& renderTargets, mxTextWriter & tw )
{
	for( UINT iRenderTarget = 0;
		iRenderTarget < renderTargets.Num();
		iRenderTarget++ )
	{
		const wrRenderTarget& renderTarget = renderTargets[ iRenderTarget ];
		tw	<< MXC("extern RenderTarget renderTarget_") << renderTarget.name << MXC(";");
		emit_source_location_comment( renderTarget.pos, tw );
	}
}
開發者ID:S-V,項目名稱:Lollipop,代碼行數:11,代碼來源:HLSLWrapperGenerator.cpp

示例3: emit_depth_stencil_states_declarations

void emit_depth_stencil_states_declarations( const TList< wrDepthStencilState >& depthStencilStates, mxTextWriter & tw )
{
	for( UINT iDepthStencilState = 0;
		iDepthStencilState < depthStencilStates.Num();
		iDepthStencilState++ )
	{
		const wrDepthStencilState& depthStencilState = depthStencilStates[ iDepthStencilState ];
		tw	<< MXC("extern DepthStencilState depthStencilState_") << depthStencilState.name << MXC(";");
		emit_source_location_comment( depthStencilState.pos, tw );
	}
}
開發者ID:S-V,項目名稱:Lollipop,代碼行數:11,代碼來源:HLSLWrapperGenerator.cpp

示例4: emit_initialize_depth_stencil_states

void emit_initialize_depth_stencil_states( const TList< wrDepthStencilState >& depthStencilStates, mxTextWriter & tw )
{
	tw	<< MXC("void SetupDepthStencilStates( const SHADER_LIB_CREATE& creationParams )\n{\n")
		<< MXC("D3D11_DEPTH_STENCIL_DESC depthStencilDesc;\n")
		<< MXC("ZERO_OUT( depthStencilDesc );\n")
		;
	for( UINT iDepthStencilState = 0;
		iDepthStencilState < depthStencilStates.Num();
		iDepthStencilState++ )
	{
		const wrDepthStencilState& depthStencilState = depthStencilStates[ iDepthStencilState ];
		GenDepthStencilStateInit( depthStencilState, tw );
	}
	tw << MXC("\n}//SetupDepthStencilStates\n");
}
開發者ID:S-V,項目名稱:Lollipop,代碼行數:15,代碼來源:HLSLWrapperGenerator.cpp

示例5: Emit_initialize_sampler_states

void Emit_initialize_sampler_states( const TList< wrSamplerState >& samplerStates, mxTextWriter & tw )
{
	tw	<< MXC("void SetupSamplerStates( const SHADER_LIB_CREATE& creationParams )\n{\n")
		<< MXC("D3D11_SAMPLER_DESC samplerDesc;\n")
		<< MXC("ZERO_OUT( samplerDesc );\n")
		;
	for( UINT iSamplerState = 0;
		iSamplerState < samplerStates.Num();
		iSamplerState++ )
	{
		const wrSamplerState& samplerState = samplerStates[ iSamplerState ];
		Emit_initialize_sampler_state( samplerState, tw );
	}
	tw << MXC("\n}//SetupSamplerStates\n");
}
開發者ID:S-V,項目名稱:Lollipop,代碼行數:15,代碼來源:HLSLWrapperGenerator.cpp

示例6: Emit_initialize_render_targets

void Emit_initialize_render_targets( const TList< wrRenderTarget >& renderTargets, mxTextWriter & tw )
{
	tw	<< MXC("void SetupRenderTargets( const SHADER_LIB_CREATE& creationParams )\n{\n")
		<< MXC("D3D11_TEXTURE2D_DESC texDesc;\n")
		<< MXC("D3D11_RENDER_TARGET_VIEW_DESC rtvDesc;\n")
		<< MXC("D3D11_SHADER_RESOURCE_VIEW_DESC srvDesc;\n")
		<< MXC("ZERO_OUT( texDesc );\n")
		<< MXC("ZERO_OUT( rtvDesc );\n")
		<< MXC("ZERO_OUT( srvDesc );\n")
		;
	for( UINT iRenderTarget = 0;
		iRenderTarget < renderTargets.Num();
		iRenderTarget++ )
	{
		const wrRenderTarget& renderTarget = renderTargets[ iRenderTarget ];
		Emit_initialize_render_target( renderTarget, tw );
	}
	tw << MXC("\n}//SetupRenderTargets\n");
}
開發者ID:S-V,項目名稱:Lollipop,代碼行數:19,代碼來源:HLSLWrapperGenerator.cpp


注:本文中的TList::Num方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。