예제 #1
0
            internal static _GetAdapterModeCount GetAdapterModeCount()
            {
                if (_GetAdapterModeCountFunc == null)
                {
                    _GetAdapterModeCountFunc =
                        (_GetAdapterModeCount)Marshal.GetDelegateForFunctionPointer(
                            Torque3D.DllLoadUtils.GetProcAddress(
                                Torque3D.Torque3DLibHandle,
                                "fnGFXInit_getAdapterModeCount"), typeof(_GetAdapterModeCount));
                }

                return(_GetAdapterModeCountFunc);
            }
예제 #2
0
파일: GFXInit.cs 프로젝트: lukaspj/T3DSharp
            internal static _GetAdapterModeCount GetAdapterModeCount()
            {
                if (_GetAdapterModeCountFunc == null)
                {
                    _GetAdapterModeCountFunc =
                        (_GetAdapterModeCount)Marshal.GetDelegateForFunctionPointer(
                            NativeLibrary.GetExport(
                                Torque3D.Torque3DLibHandle,
                                "fnGFXInit_getAdapterModeCount"), typeof(_GetAdapterModeCount));
                }

                return(_GetAdapterModeCountFunc);
            }