Beispiel #1
0
            internal static _SetModel SetModel()
            {
                if (_SetModelFunc == null)
                {
                    _SetModelFunc =
                        (_SetModel)Marshal.GetDelegateForFunctionPointer(
                            NativeLibrary.GetExport(
                                Torque3D.Torque3DLibHandle,
                                "fnGuiMaterialPreview_setModel"), typeof(_SetModel));
                }

                return(_SetModelFunc);
            }
            internal static _SetModel SetModel()
            {
                if (_SetModelFunc == null)
                {
                    _SetModelFunc =
                        (_SetModel)Marshal.GetDelegateForFunctionPointer(
                            Torque3D.DllLoadUtils.GetProcAddress(
                                Torque3D.Torque3DLibHandle,
                                "fnGuiMaterialPreview_setModel"), typeof(_SetModel));
                }

                return(_SetModelFunc);
            }