Skip to content

Instantly share code, notes, and snippets.

View lundmark's full-sized avatar

Simon Lundmark lundmark

View GitHub Profile
@ocornut
ocornut / imgui_node_graph_test.cpp
Last active April 23, 2024 19:02
Node graph editor basic demo for ImGui
// Creating a node graph editor for Dear ImGui
// Quick sample, not production code!
// This is quick demo I crafted in a few hours in 2015 showcasing how to use Dear ImGui to create custom stuff,
// which ended up feeding a thread full of better experiments.
// See https://github.com/ocornut/imgui/issues/306 for details
// Fast forward to 2023, see e.g. https://github.com/ocornut/imgui/wiki/Useful-Extensions#node-editors
// Changelog
// - v0.05 (2023-03): fixed for renamed api: AddBezierCurve()->AddBezierCubic().
@JSandusky
JSandusky / imgui_bitfield.cpp
Created March 26, 2018 05:56
ImGui Bitfield Checkbox Matrix
bool BitField(const char* label, unsigned* bits, unsigned* hoverIndex)
{
unsigned val = *bits;
ImGuiWindow* window = GetCurrentWindow();
if (window->SkipItems)
return false;
unsigned oldFlags = window->Flags;
ImGuiContext* g = ImGui::GetCurrentContext();
@joeldevahl
joeldevahl / Järflotta.txt
Last active August 16, 2018 13:59
Järflotta
https://threadreaderapp.com/thread/1011238777283596289.html
https://threadreaderapp.com/thread/1013700602143092736.html
https://threadreaderapp.com/thread/1014065512186372096.html
https://threadreaderapp.com/thread/1014807021147885568.html
https://threadreaderapp.com/thread/1016022501133111296.html
https://threadreaderapp.com/thread/1016373886873735169.html
https://threadreaderapp.com/thread/1017321885883826176.html
https://threadreaderapp.com/thread/1018778909297598465.html
https://threadreaderapp.com/thread/1019268188255776775.html
https://threadreaderapp.com/thread/1019583196801925121.html