Axiom.Core.InstancedGeometry.BuildIndexRemap C# (CSharp) Method

BuildIndexRemap() private method

private BuildIndexRemap ( uint pBuffer, int numIndexes, int>.Dictionary &remap ) : void
pBuffer uint
numIndexes int
remap int>.Dictionary
return void
		internal unsafe void BuildIndexRemap( uint* pBuffer, int numIndexes, ref Dictionary<int, int> remap )
		{
			remap.Clear();
			for ( int i = 0; i < numIndexes; ++i )
			{
				// use insert since duplicates are silently discarded
				remap.Add( (int)*pBuffer++, remap.Count );
				// this will have mapped oldindex -> new index IF oldindex
				// wasn't already there
			}
		}

Same methods

InstancedGeometry::BuildIndexRemap ( ushort pBuffer, int numIndexes, int>.Dictionary &remap ) : void