コード例 #1
0
            internal static _GetBestDepthFormat GetBestDepthFormat()
            {
                if (_GetBestDepthFormatFunc == null)
                {
                    _GetBestDepthFormatFunc =
                        (_GetBestDepthFormat)Marshal.GetDelegateForFunctionPointer(
                            Torque3D.DllLoadUtils.GetProcAddress(
                                Torque3D.Torque3DLibHandle,
                                "fnGFXCardProfilerAPI_getBestDepthFormat"), typeof(_GetBestDepthFormat));
                }

                return(_GetBestDepthFormatFunc);
            }
コード例 #2
0
            internal static _GetBestDepthFormat GetBestDepthFormat()
            {
                if (_GetBestDepthFormatFunc == null)
                {
                    _GetBestDepthFormatFunc =
                        (_GetBestDepthFormat)Marshal.GetDelegateForFunctionPointer(
                            NativeLibrary.GetExport(
                                Torque3D.Torque3DLibHandle,
                                "fnGFXCardProfilerAPI_getBestDepthFormat"), typeof(_GetBestDepthFormat));
                }

                return(_GetBestDepthFormatFunc);
            }