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

Method pp_start

ogsr_engine/xrGame/ui_base.cpp:239–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237}
238
239void ui_core::pp_start()
240{
241 m_bPostprocess = true;
242
243 auto& cmd_list_imm = ::Render->get_imm_command_list();
244
245 m_pp_scale_.set(float(::Render->getTarget()->get_width(cmd_list_imm)) / float(UI_BASE_WIDTH), float(::Render->getTarget()->get_height(cmd_list_imm)) / float(UI_BASE_HEIGHT));
246 m_2DFrustumPP.CreateFromRect(Frect().set(0.0f, 0.0f, float(::Render->getTarget()->get_width(cmd_list_imm)), float(::Render->getTarget()->get_height(cmd_list_imm))));
247
248 m_current_scale = &m_pp_scale_;
249 //. g_current_font_scale = m_pp_scale_;
250
251 g_current_font_scale.set(float(::Render->getTarget()->get_width(cmd_list_imm)) / float(Device.dwWidth),
252 float(::Render->getTarget()->get_height(cmd_list_imm)) / float(Device.dwHeight));
253}
254
255float ui_core::get_current_kx()
256{

Callers

nothing calls this directly

Calls 5

get_widthMethod · 0.80
getTargetMethod · 0.80
get_heightMethod · 0.80
CreateFromRectMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected