MCPcopy Create free account
hub / github.com/VictorGordan/opengl-tutorials / GetFloatRef

Method GetFloatRef

ImGUI GLFW Tutorial/imgui/imgui.cpp:1955–1961  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1953}
1954
1955float* ImGuiStorage::GetFloatRef(ImGuiID key, float default_val)
1956{
1957 ImGuiStoragePair* it = LowerBound(Data, key);
1958 if (it == Data.end() || it->key != key)
1959 it = Data.insert(it, ImGuiStoragePair(key, default_val));
1960 return &it->val_f;
1961}
1962
1963void** ImGuiStorage::GetVoidPtrRef(ImGuiID key, void* default_val)
1964{

Callers

nothing calls this directly

Calls 4

LowerBoundFunction · 0.70
ImGuiStoragePairClass · 0.70
endMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected