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

Method OnHUDDraw

ogsr_engine/xrGame/Car.cpp:527–538  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

525void CCar::net_Export(CSE_Abstract* E) { inherited::net_Export(E); }
526
527void CCar::OnHUDDraw(CCustomHUD* hud, u32 context_id, IRenderable* root)
528{
529#ifdef DEBUG
530 Fvector velocity;
531 m_pPhysicsShell->get_LinearVel(velocity);
532 HUD().Font().pFontStat->SetColor(0xffffffff);
533 HUD().Font().pFontStat->OutSet(120, 530);
534 HUD().Font().pFontStat->OutNext("Position: [%3.2f, %3.2f, %3.2f]", VPUSH(Position()));
535 HUD().Font().pFontStat->OutNext("Velocity: [%3.2f]", velocity.magnitude());
536
537#endif
538}
539
540// void CCar::Hit(float P,Fvector &dir,CObject * who,s16 element,Fvector p_in_object_space, float impulse, ALife::EHitType hit_type)
541void CCar::Hit(SHit* pHDS)

Callers 1

Render_MAINMethod · 0.45

Calls 6

FontMethod · 0.80
OutSetMethod · 0.80
OutNextMethod · 0.80
get_LinearVelMethod · 0.45
SetColorMethod · 0.45
magnitudeMethod · 0.45

Tested by

no test coverage detected