MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / OnDeviceReset

Method OnDeviceReset

ogsr_engine/xrGame/ui_base.cpp:114–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114void ui_core::OnDeviceReset()
115{
116 m_scale_.set(float(Device.dwWidth) / UI_BASE_WIDTH, float(Device.dwHeight) / UI_BASE_HEIGHT);
117
118 m_2DFrustum.CreateFromRect(Frect().set(0.0f, 0.0f, float(Device.dwWidth), float(Device.dwHeight)));
119}
120
121void ui_core::ClientToScreenScaled(Fvector2& dest, float left, float top)
122{

Callers 1

rp_DeviceResetFunction · 0.45

Calls 2

CreateFromRectMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected