jvcleave / ofxImGui

Use ImGui in openFrameworks
292 stars 123 forks source link

ofxImGuiLoggerChannel.h #105

Closed cyrstem closed 1 year ago

cyrstem commented 4 years ago

can someone point out how to use ofxImGuiLoggerChannel.h or get the ofLog(); in ofxImGui to work ?

Daandelange commented 2 years ago

Hey, good question. There's [the example]() and another usecase by sphaero here. Also there's a modification by to capture std output around.

It looks similar to the imgui logger examples and it feels like there could be some more oF glue. Maybe there's something more oF-native to do involving ofSetLoggerChannel(), as it's a ofBaseLoggerChannel, like : https://github.com/d3cod3/Mosaic/blob/60b4a448b53976e80241bf128aff593af8f032e8/src/ofApp.cpp#L73-L74 And there could definitely be an embedded function to render any ofBaseLoggerChannel to the gui.

cyrstem commented 2 years ago

Hey yup i ended up using this example some time ago but thanks!