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

Method render

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

Source from the content-addressed store, hash-verified

223 void set_callback(Callback callback) { m_callback = callback; }
224
225 virtual void render() override
226 {
227 ScopedID id(this);
228 if (!m_visible)
229 return;
230 ScopedDisable disable(!m_enabled);
231 if (ImGui::Button(m_label.c_str()))
232 {
233 if (m_callback)
234 m_callback();
235 }
236 }
237
238private:
239 std::string m_label;

Callers

nothing calls this directly

Calls 1

ButtonClass · 0.85

Tested by

no test coverage detected