MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / ChannelsSplit

Method ChannelsSplit

extern/imgui/imgui.h:2699–2699  ·  view source on GitHub ↗

Advanced: Channels - Use to split render into layers. By switching channels to can render out-of-order (e.g. submit FG primitives before BG primitives) - Use to minimize draw calls (e.g. if going back-and-forth between multiple clipping rectangles, prefer to append into separate channels then merge at the end) - FIXME-OBSOLETE: This API shouldn't have been in ImDrawList in the first place! Prefer

Source from the content-addressed store, hash-verified

2697 // Prefer using your own persistent instance of ImDrawListSplitter as you can stack them.
2698 // Using the ImDrawList::ChannelsXXXX you cannot stack a split over another.
2699 inline void ChannelsSplit(int count) { _Splitter.Split(this, count); }
2700 inline void ChannelsMerge() { _Splitter.Merge(this); }
2701 inline void ChannelsSetCurrent(int n) { _Splitter.SetCurrentChannel(this, n); }
2702

Callers 1

BeginMethod · 0.80

Calls 1

SplitMethod · 0.80

Tested by

no test coverage detected