Пример #1
0
            internal static _GetAdapterCount GetAdapterCount()
            {
                if (_GetAdapterCountFunc == null)
                {
                    _GetAdapterCountFunc =
                        (_GetAdapterCount)Marshal.GetDelegateForFunctionPointer(
                            Torque3D.DllLoadUtils.GetProcAddress(
                                Torque3D.Torque3DLibHandle,
                                "fnGFXInit_getAdapterCount"), typeof(_GetAdapterCount));
                }

                return(_GetAdapterCountFunc);
            }
Пример #2
0
            internal static _GetAdapterCount GetAdapterCount()
            {
                if (_GetAdapterCountFunc == null)
                {
                    _GetAdapterCountFunc =
                        (_GetAdapterCount)Marshal.GetDelegateForFunctionPointer(
                            NativeLibrary.GetExport(
                                Torque3D.Torque3DLibHandle,
                                "fnGFXInit_getAdapterCount"), typeof(_GetAdapterCount));
                }

                return(_GetAdapterCountFunc);
            }