MCPcopy Create free account
hub / github.com/ValveSoftware/openvr / FindOverlay

Method FindOverlay

headers/openvr_api.cs:3350–3357  ·  view source on GitHub ↗
(string pchOverlayKey,ref ulong pOverlayHandle)

Source from the content-addressed store, hash-verified

3348 FnTable = (IVROverlay)Marshal.PtrToStructure(pInterface, typeof(IVROverlay));
3349 }
3350 public EVROverlayError FindOverlay(string pchOverlayKey,ref ulong pOverlayHandle)
3351 {
3352 IntPtr pchOverlayKeyUtf8 = Utils.ToUtf8(pchOverlayKey);
3353 pOverlayHandle = 0;
3354 EVROverlayError result = FnTable.FindOverlay(pchOverlayKeyUtf8,ref pOverlayHandle);
3355 Marshal.FreeHGlobal(pchOverlayKeyUtf8);
3356 return result;
3357 }
3358 public EVROverlayError CreateOverlay(string pchOverlayKey,string pchOverlayName,ref ulong pOverlayHandle)
3359 {
3360 IntPtr pchOverlayKeyUtf8 = Utils.ToUtf8(pchOverlayKey);

Callers

nothing calls this directly

Calls 1

ToUtf8Method · 0.80

Tested by

no test coverage detected