Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ UpdateParent()

unsafe void Microsoft.Xna.Framework.Graphics.EffectAnnotationCollection.UpdateParent ( ID3DXBaseEffect * parent,
sbyte * handle )
inlinepackage

Definition at line 72 of file EffectAnnotationCollection.cs.

73 {
74 pEffect = parent;
75 int num = 0;
76 if (0 < pAnnotation.Count)
77 {
78 do
79 {
81 sbyte* handle2 = ((delegate* unmanaged[Stdcall, Stdcall]<IntPtr, sbyte*, uint, sbyte*>)(int)(*(uint*)(*(int*)ptr + 72)))((nint)ptr, handle, (uint)num);
83 EffectAnnotation effectAnnotation = pAnnotation[num];
84 effectAnnotation.pEffect = ptr2;
85 effectAnnotation._handle = handle2;
86 num++;
87 }
88 while (num < pAnnotation.Count);
89 }
90 }

References System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.handle, Microsoft.Xna.Framework.Graphics.EffectAnnotationCollection.pAnnotation, and Microsoft.Xna.Framework.Graphics.EffectAnnotationCollection.pEffect.

Referenced by Microsoft.Xna.Framework.Graphics.EffectParameter.UpdateHandle(), Microsoft.Xna.Framework.Graphics.EffectPass.UpdateHandle(), and Microsoft.Xna.Framework.Graphics.EffectTechnique.UpdateHandle().