MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / cocos_to_vec2

Function cocos_to_vec2

Source/CocosExplorer.cpp:54–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54ImVec2 cocos_to_vec2(const ax::Point& a)
55{
56 const auto size = ImGui::GetMainViewport()->Size;
57 const auto win_size = ax::Director::getInstance()->getWinSize();
58 return {a.x / win_size.width * size.x, (1.f - a.y / win_size.height) * size.y};
59}
60
61void highlight(ax::Node* node, bool selected)
62{

Callers 1

highlightFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected