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

Function drawBox2D

physx/samples/samplevehicle/SampleVehicleDebugRender.cpp:133–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133static void drawBox2D(Renderer* renderer, PxF32 minX, PxF32 maxX, PxF32 minY, PxF32 maxY, const RendererColor& color, PxF32 alpha)
134{
135 ScreenQuad sq;
136 sq.mX0 = minX;
137 sq.mY0 = 1.0f - minY;
138 sq.mX1 = maxX;
139 sq.mY1 = 1.0f - maxY;
140 sq.mLeftUpColor = color;
141 sq.mRightUpColor = color;
142 sq.mLeftDownColor = color;
143 sq.mRightDownColor = color;
144 sq.mAlpha = alpha;
145
146 renderer->drawScreenQuad(sq);
147}
148
149static void print(Renderer* renderer, PxF32 x, PxF32 y, PxF32 scale_, const char* text)
150{

Callers 2

drawHudMethod · 0.85

Calls 1

drawScreenQuadMethod · 0.80

Tested by

no test coverage detected