public bool TakeScreenShot(string path, string pathVR) { CVRScreenshots screenshot = OpenVR.Screenshots; if (screenshot == null) { return(false); } string previewfile = path; string vrfile = pathVR; EVRScreenshotError error = EVRScreenshotError.None; uint pOutScreenshotHandle = 0; error = screenshot.TakeStereoScreenshot(ref pOutScreenshotHandle, previewfile, vrfile); return(error == EVRScreenshotError.None); }
private string GetScreenshotFilename(uint screenshotHandle, EVRScreenshotPropertyFilenames screenshotPropertyFilename) { EVRScreenshotError pError = EVRScreenshotError.None; uint screenshotPropertyFilename2 = OpenVR.Screenshots.GetScreenshotPropertyFilename(screenshotHandle, screenshotPropertyFilename, null, 0u, ref pError); if (pError != 0 && pError != EVRScreenshotError.BufferTooSmall) { return(null); } if (screenshotPropertyFilename2 > 1) { StringBuilder stringBuilder = new StringBuilder((int)screenshotPropertyFilename2); OpenVR.Screenshots.GetScreenshotPropertyFilename(screenshotHandle, screenshotPropertyFilename, stringBuilder, screenshotPropertyFilename2, ref pError); if (pError != 0) { return(null); } return(stringBuilder.ToString()); } return(null); }
public uint GetScreenshotPropertyFilename(uint screenshotHandle,EVRScreenshotPropertyFilenames filenameType,System.Text.StringBuilder pchFilename,uint cchFilename,ref EVRScreenshotError pError) { uint result = FnTable.GetScreenshotPropertyFilename(screenshotHandle,filenameType,pchFilename,cchFilename,ref pError); return result; }
public EVRScreenshotType GetScreenshotPropertyType(uint screenshotHandle,ref EVRScreenshotError pError) { EVRScreenshotType result = FnTable.GetScreenshotPropertyType(screenshotHandle,ref pError); return result; }
// Token: 0x06001FF4 RID: 8180 RVA: 0x0009E421 File Offset: 0x0009C621 public uint GetScreenshotPropertyFilename(uint screenshotHandle, EVRScreenshotPropertyFilenames filenameType, StringBuilder pchFilename, uint cchFilename, ref EVRScreenshotError pError) { return(this.FnTable.GetScreenshotPropertyFilename(screenshotHandle, filenameType, pchFilename, cchFilename, ref pError)); }
// Token: 0x06001FF3 RID: 8179 RVA: 0x0009E40D File Offset: 0x0009C60D public EVRScreenshotType GetScreenshotPropertyType(uint screenshotHandle, ref EVRScreenshotError pError) { return(this.FnTable.GetScreenshotPropertyType(screenshotHandle, ref pError)); }
public EVRScreenshotType GetScreenshotPropertyType(uint screenshotHandle, ref EVRScreenshotError pError) => default; // 0x00000001811DF630-0x00000001811DF650 public uint GetScreenshotPropertyFilename(uint screenshotHandle, EVRScreenshotPropertyFilenames filenameType, StringBuilder pchFilename, uint cchFilename, ref EVRScreenshotError pError) => default; // 0x00000001811DF900-0x00000001811DF930
public EVRScreenshotError HookScreenshot(EVRScreenshotType[] pSupportedTypes) => default; // 0x00000001811DF930-0x00000001811DF960 public EVRScreenshotType GetScreenshotPropertyType(uint screenshotHandle, ref EVRScreenshotError pError) => default; // 0x00000001811DF630-0x00000001811DF650