Files
UltimateFishing/Assets/Scripts/Assembly-CSharp/Valve/VR/CVRExtendedDisplay.cs
2026-02-21 16:45:37 +08:00

41 lines
1.0 KiB
C#

using System;
using System.Runtime.InteropServices;
namespace Valve.VR
{
public class CVRExtendedDisplay
{
private IVRExtendedDisplay FnTable;
internal CVRExtendedDisplay(IntPtr pInterface)
{
FnTable = (IVRExtendedDisplay)Marshal.PtrToStructure(pInterface, typeof(IVRExtendedDisplay));
}
public void GetWindowBounds(ref int pnX, ref int pnY, ref uint pnWidth, ref uint pnHeight)
{
pnX = 0;
pnY = 0;
pnWidth = 0u;
pnHeight = 0u;
FnTable.GetWindowBounds(ref pnX, ref pnY, ref pnWidth, ref pnHeight);
}
public void GetEyeOutputViewport(EVREye eEye, ref uint pnX, ref uint pnY, ref uint pnWidth, ref uint pnHeight)
{
pnX = 0u;
pnY = 0u;
pnWidth = 0u;
pnHeight = 0u;
FnTable.GetEyeOutputViewport(eEye, ref pnX, ref pnY, ref pnWidth, ref pnHeight);
}
public void GetDXGIOutputInfo(ref int pnAdapterIndex, ref int pnAdapterOutputIndex)
{
pnAdapterIndex = 0;
pnAdapterOutputIndex = 0;
FnTable.GetDXGIOutputInfo(ref pnAdapterIndex, ref pnAdapterOutputIndex);
}
}
}