MCPcopy Create free account
hub / github.com/defold/defold / SetScreenPosition

Function SetScreenPosition

engine/gui/src/gui.cpp:4547–4552  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4545 }
4546
4547 static void SetScreenPosition(HScene scene, InternalNode* node, InternalNode* parent_node, dmVMath::Vector3 screen_position)
4548 {
4549 Vector3 local_position = ScreenToLocalPosition(scene, node, parent_node, screen_position);
4550 node->m_Node.m_Properties[dmGui::PROPERTY_POSITION] = Vector4(local_position, 1.0f);
4551 node->m_Node.m_DirtyLocal = 1;
4552 }
4553
4554 void SetScreenPosition(HScene scene, HNode node, const Point3& screen_position)
4555 {

Callers 3

SetNodeParentFunction · 0.70
LuaSetScreenPositionFunction · 0.70
TEST_FFunction · 0.50

Calls 4

ScreenToLocalPositionFunction · 0.70
GetNodeFunction · 0.70
Vector4Class · 0.50
Vector3Class · 0.50

Tested by 1

TEST_FFunction · 0.40