MCPcopy Create free account
hub / github.com/StereoKit/StereoKit / input_hand_material

Function input_hand_material

StereoKitC/hands/input_hand.cpp:821–834  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

819///////////////////////////////////////////
820
821void input_hand_material(handed_ hand, material_t material) {
822 if (hand == handed_max) {
823 input_hand_material(handed_left, material);
824 input_hand_material(handed_right, material);
825 return;
826 }
827
828 material_release(hand_state[hand].material);
829
830 if (material != nullptr)
831 material_addref(material);
832
833 hand_state[hand].material = material;
834}
835
836} // namespace sk

Callers

nothing calls this directly

Calls 2

material_releaseFunction · 0.85
material_addrefFunction · 0.85

Tested by

no test coverage detected