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

Method CreateOverlay

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

Source from the content-addressed store, hash-verified

3356 return result;
3357 }
3358 public EVROverlayError CreateOverlay(string pchOverlayKey,string pchOverlayName,ref ulong pOverlayHandle)
3359 {
3360 IntPtr pchOverlayKeyUtf8 = Utils.ToUtf8(pchOverlayKey);
3361 IntPtr pchOverlayNameUtf8 = Utils.ToUtf8(pchOverlayName);
3362 pOverlayHandle = 0;
3363 EVROverlayError result = FnTable.CreateOverlay(pchOverlayKeyUtf8,pchOverlayNameUtf8,ref pOverlayHandle);
3364 Marshal.FreeHGlobal(pchOverlayKeyUtf8);
3365 Marshal.FreeHGlobal(pchOverlayNameUtf8);
3366 return result;
3367 }
3368 public EVROverlayError CreateSubviewOverlay(ulong parentOverlayHandle,string pchSubviewOverlayKey,string pchSubviewOverlayName,ref ulong pSubviewOverlayHandle)
3369 {
3370 IntPtr pchSubviewOverlayKeyUtf8 = Utils.ToUtf8(pchSubviewOverlayKey);

Callers

nothing calls this directly

Calls 1

ToUtf8Method · 0.80

Tested by

no test coverage detected