Пример #1
0
            internal static void animate(IntPtr thisPtr, float elevation, float degreesPerSecond)
            {
                if (_animateFunc == null)
                {
                    _animateFunc =
                        (_animate)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                             "fn_TimeOfDay_animate"), typeof(_animate));
                }

                _animateFunc(thisPtr, elevation, degreesPerSecond);
            }
Пример #2
0
            internal static void animate(IntPtr thisPtr, float duration, float startAzimuth, float endAzimuth, float startElevation, float endElevation)
            {
                if (_animateFunc == null)
                {
                    _animateFunc =
                        (_animate)Marshal.GetDelegateForFunctionPointer(Torque3D.DllLoadUtils.GetProcAddress(Torque3D.Torque3DLibHandle,
                                                                                                             "fn_Sun_animate"), typeof(_animate));
                }

                _animateFunc(thisPtr, duration, startAzimuth, endAzimuth, startElevation, endElevation);
            }