Axiom.Graphics.ShadowVolumeExtrudeProgram.GetProgramName C# (CSharp) Method

GetProgramName() public static method

General purpose method to get any of the program names based on the specified parameters.
public static GetProgramName ( LightType lightType, bool finite, bool debug ) : string
lightType LightType Type of light to get the source for.
finite bool Is this for finite volume extrusion?
debug bool Should the shadow volumes be visible?
return string
		public static string GetProgramName( LightType lightType, bool finite, bool debug )
		{
			if ( lightType == LightType.Directional )
			{
				if ( finite )
				{
					if ( debug )
					{
						return programNames[ (int)Programs.DirectionalLightFiniteDebug ];
					}
					else
					{
						return programNames[ (int)Programs.DirectionalLightFinite ];
					}
				}
				else
				{
					if ( debug )
					{
						return programNames[ (int)Programs.DirectionalLightDebug ];
					}
					else
					{
						return programNames[ (int)Programs.DirectionalLight ];
					}
				}
			}
			else
			{
				if ( finite )
				{
					if ( debug )
					{
						return programNames[ (int)Programs.PointLightFiniteDebug ];
					}
					else
					{
						return programNames[ (int)Programs.PointLightFinite ];
					}
				}
				else
				{
					if ( debug )
					{
						return programNames[ (int)Programs.PointLightDebug ];
					}
					else
					{
						return programNames[ (int)Programs.PointLight ];
					}
				}
			}
		}

Same methods

ShadowVolumeExtrudeProgram::GetProgramName ( Programs type ) : string