MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / render_hand

Function render_hand

src/SB/Game/zEntPlayerOOBState.cpp:295–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293 }
294
295 static void render_hand()
296 {
297 zRenderState(SDRS_OOBHand);
298
299 xVec3 modelLoc = { 0.0f, 0.0f, 0.0f };
300 xVec3 modelSize = { 0.0f, 0.0f, 1.0f };
301 xVec3 modelYpr = { 0.0f, 0.0f, 0.0f };
302
303 modelLoc.x = shared.loc.x;
304 modelLoc.y = shared.loc.y;
305
306 modelSize.x = fixed.hand_size_x;
307 modelSize.y = fixed.hand_size_y;
308
309 modelYpr.x = fixed.hand_yaw;
310 modelYpr.y = fixed.hand_pitch;
311 modelYpr.z = fixed.hand_roll;
312
313 render_model(*shared.model, modelLoc, modelSize, modelYpr);
314 }
315 } // namespace
316} // namespace oob_state
317

Callers 1

fx_renderMethod · 0.85

Calls 2

zRenderStateFunction · 0.85
render_modelFunction · 0.70

Tested by

no test coverage detected