| 147 | } |
| 148 | |
| 149 | static 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 | |
| 163 | void SampleVehicle::drawHud() |
| 164 | { |
no test coverage detected