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

Method UpdateThumbnail

ReviveOverlay/openvroverlaycontroller.cpp:535–543  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Purpose: -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

533// Purpose:
534//-----------------------------------------------------------------------------
535void COpenVROverlayController::UpdateThumbnail()
536{
537 uintptr_t unThumbnail = m_pThumbnailTexture->textureId();
538 if( vr::VROverlay() && unThumbnail != 0 )
539 {
540 vr::Texture_t thumbnail = {(void*)unThumbnail, vr::TextureType_OpenGL, vr::ColorSpace_Auto };
541 vr::VROverlay()->SetOverlayTexture( m_ulOverlayThumbnailHandle, &thumbnail );
542 }
543}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected