v1.80-1.5.0
- Updated Dear ImGui to v1.80;
- Added new
imgui-app
module. More info below. - Added two native extensions: ImNodes and imgui-node-editor (#29) [@abvadabra];
- Example was revamped. It was simplified, remade to use new
imgui-app
module and was moved into its own module. Has example of extensions usage as well; - Added several new methods:
ImGui#inputTextWithHint()
;ImColor#hslToColor
;ImGui#calcItemSize
(internal API);ImGui#splitterBehavior
(internal API);
ImGui App Module (Application abstration)
New module provides an abstraction layer to create ImGui applications. It hides all low-level routine. Every life-cycle method could be overriden with custom logic, so you can extend class in the way you need. Or just keep it as it is, if need nothing specific. Simple application may look like this:
import imgui.ImGui;
import imgui.app.Application;
public class Main extends Application {
@Override
protected void configure(Configuration config) {
config.setTitle("Dear ImGui is Awesome!");
}
@Override
public void process() {
ImGui.text("Hello, World!");
}
public static void main(String[] args) {
launch(new Main());
}
}