MCPcopy Create free account
hub / github.com/LibreVR/Revive / ovr_GetViewportStencil

Function ovr_GetViewportStencil

Revive/REV_CAPI.cpp:1347–1359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1345
1346OVR_PUBLIC_FUNCTION(ovrResult)
1347ovr_GetViewportStencil(
1348 ovrSession session,
1349 const ovrViewportStencilDesc* viewportStencilDesc,
1350 ovrFovStencilMeshBuffer* outMeshBuffer)
1351{
1352 ovrFovStencilDesc fovStencilDesc = {};
1353 fovStencilDesc.StencilType = viewportStencilDesc->StencilType;
1354 fovStencilDesc.StencilFlags = 0;
1355 fovStencilDesc.Eye = viewportStencilDesc->Eye;
1356 fovStencilDesc.FovPort = viewportStencilDesc->FovPort;
1357 fovStencilDesc.HmdToEyeRotation = viewportStencilDesc->HmdToEyeRotation;
1358 return ovr_GetFovStencil(session, &fovStencilDesc, outMeshBuffer);
1359}
1360
1361static const ovrVector2f StencilVertices[] = {
1362 { 0.0f, 0.0f },

Callers

nothing calls this directly

Calls 1

ovr_GetFovStencilFunction · 0.70

Tested by

no test coverage detected