MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / render

Method render

Source/Falcor/Utils/UI/PythonUI.cpp:275–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273 void set_value(bool value) { m_value = value; }
274
275 virtual void render() override
276 {
277 ScopedID id(this);
278 if (!m_visible)
279 return;
280 ScopedDisable disable(!m_enabled);
281 if (ImGui::Checkbox(m_label.c_str(), &m_value))
282 {
283 if (m_change_callback)
284 m_change_callback();
285 }
286 }
287
288private:
289 bool m_value;

Callers

nothing calls this directly

Calls 1

CheckboxClass · 0.85

Tested by

no test coverage detected