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

Function DI2PX

ogsr_engine/xr_3da/GameFont.cpp:224–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224static inline float DI2PX(float x)
225{
226 auto& cmd_list = ::Render->get_imm_command_list();
227 return float(iFloor((x + 1) * float(::Render->getTarget()->get_width(cmd_list)) * 0.5f));
228}
229static inline float DI2PY(float y)
230{
231 auto& cmd_list = ::Render->get_imm_command_list();

Callers 2

OutSetIMethod · 0.85
MasterOutMethod · 0.85

Calls 2

get_widthMethod · 0.80
getTargetMethod · 0.80

Tested by

no test coverage detected