MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / rotate

Function rotate

plugins/base/macro-action-scene-transform.cpp:106–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106static void rotate(obs_sceneitem_t *item, float rot)
107{
108 vec3 tl = getItemTL(item);
109 rot += obs_sceneitem_get_rot(item);
110 if (rot >= 360.0f) {
111 rot -= 360.0f;
112 } else if (rot <= -360.0f) {
113 rot += 360.0f;
114 }
115 obs_sceneitem_set_rot(item, rot);
116 obs_sceneitem_force_update_transform(item);
117 setItemTL(item, tl);
118};
119
120static void flip(obs_sceneitem_t *item, const vec2 &mul)
121{

Callers 1

TransformMethod · 0.85

Calls 2

getItemTLFunction · 0.85
setItemTLFunction · 0.85

Tested by

no test coverage detected