Пример #1
0
            internal static _Smooth Smooth()
            {
                if (_SmoothFunc == null)
                {
                    _SmoothFunc =
                        (_Smooth)Marshal.GetDelegateForFunctionPointer(
                            Torque3D.DllLoadUtils.GetProcAddress(
                                Torque3D.Torque3DLibHandle,
                                "fnTerrainSmoothAction_smooth"), typeof(_Smooth));
                }

                return(_SmoothFunc);
            }
Пример #2
0
            internal static _Smooth Smooth()
            {
                if (_SmoothFunc == null)
                {
                    _SmoothFunc =
                        (_Smooth)Marshal.GetDelegateForFunctionPointer(
                            NativeLibrary.GetExport(
                                Torque3D.Torque3DLibHandle,
                                "fnTerrainSmoothAction_smooth"), typeof(_Smooth));
                }

                return(_SmoothFunc);
            }