Axiom.RenderSystems.Xna.XnaTexture.ConstructCubeFaceNames C# (CSharp) Method

ConstructCubeFaceNames() private method

private ConstructCubeFaceNames ( string name ) : void
name string
return void
		private void ConstructCubeFaceNames( string name )
		{
			string baseName, ext;
			string[] postfixes = { "_rt", "_lf", "_up", "_dn", "_fr", "_bk" };

			int pos = name.LastIndexOf( "." );

			baseName = name.Substring( 0, pos );
			ext = name.Substring( pos );

			for ( int i = 0; i < 6; i++ )
			{
				cubeFaceNames[ i ] = baseName + postfixes[ i ] + ext;
			}
		}