Esempio n. 1
0
            internal static unsafe void Invoke(IntPtr obj, CurveFloat NewFloatCurve, Name FloatTrackName)
            {
                long *p = stackalloc long[] { 0L, 0L, 0L, 0L };
                byte *b = (byte *)p;

                *((IntPtr *)(b + 0)) = NewFloatCurve;
                *((Name *)(b + 8))   = FloatTrackName;
                Main.GetProcessEvent(obj, SetFloatCurve_ptr, new IntPtr(p));;
            }
        }
Esempio n. 2
0
            internal static unsafe void Invoke(IntPtr obj, MaterialInterface Material, CurveFloat DistanceToOpacityCurve, bool bSizeIsInScreenSpace, float BaseSizeX, float BaseSizeY, CurveFloat DistanceToSizeCurve)
            {
                long *p = stackalloc long[] { 0L, 0L, 0L, 0L, 0L, 0L };
                byte *b = (byte *)p;

                *((IntPtr *)(b + 0))  = Material;
                *((IntPtr *)(b + 8))  = DistanceToOpacityCurve;
                *((bool *)(b + 16))   = bSizeIsInScreenSpace;
                *((float *)(b + 20))  = BaseSizeX;
                *((float *)(b + 24))  = BaseSizeY;
                *((IntPtr *)(b + 32)) = DistanceToSizeCurve;
                Main.GetProcessEvent(obj, AddElement_ptr, new IntPtr(p));;
            }
        }