internal static _GetCentroid GetCentroid()
            {
                if (_GetCentroidFunc == null)
                {
                    _GetCentroidFunc =
                        (_GetCentroid)Marshal.GetDelegateForFunctionPointer(
                            Torque3D.DllLoadUtils.GetProcAddress(
                                Torque3D.Torque3DLibHandle,
                                "fnWorldEditorSelection_getCentroid"), typeof(_GetCentroid));
                }

                return(_GetCentroidFunc);
            }
示例#2
0
            internal static _GetCentroid GetCentroid()
            {
                if (_GetCentroidFunc == null)
                {
                    _GetCentroidFunc =
                        (_GetCentroid)Marshal.GetDelegateForFunctionPointer(
                            NativeLibrary.GetExport(
                                Torque3D.Torque3DLibHandle,
                                "fnWorldEditorSelection_getCentroid"), typeof(_GetCentroid));
                }

                return(_GetCentroidFunc);
            }