MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / print

Function print

physx/samples/samplevehicle/SampleVehicleDebugRender.cpp:149–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149static void print(Renderer* renderer, PxF32 x, PxF32 y, PxF32 scale_, const char* text)
150{
151 PxU32 width, height;
152 renderer->getWindowSize(width, height);
153
154 y = 1.0f - y;
155
156 const PxReal scale = scale_*20.0f;
157 const PxReal shadowOffset = 6.0f;
158 const RendererColor textColor(255, 255, 255, 255);
159
160 renderer->print(PxU32(x*PxF32(width)), PxU32(y*PxF32(height)), text, scale, shadowOffset, textColor);
161}
162
163void SampleVehicle::drawHud()
164{

Callers 2

drawHudMethod · 0.70

Calls 2

getWindowSizeMethod · 0.45
printMethod · 0.45

Tested by

no test coverage detected