[Doc] Add info about ImPlot
This commit is contained in:
1 parent
ac7ae3d13c
commit
68b36de553
3 files changed
+9
-24
No files matched your search
@@ -1,10 +1,9 @@
|
||||
import imgui.extension.implot.ImPlot;
|
||||
import imgui.extension.implot.ImPlotContext;
|
||||
import imgui.flag.ImGuiCond;
|
||||
import imgui.internal.ImGui;
|
||||
import imgui.type.ImBoolean;
|
||||
|
||||
import java.awt.*;
|
||||
import java.awt.Desktop;
|
||||
import java.net.URI;
|
||||
|
||||
public class ExampleImPlot {
|
||||
@@ -14,10 +13,8 @@ public class ExampleImPlot {
|
||||
private static final Integer[] xs = {0, 1, 2, 3, 4, 5};
|
||||
private static final Integer[] ys = {0, 1, 2, 3, 4, 5};
|
||||
|
||||
private final static ImPlotContext IMPLOT_CONTEXT;
|
||||
|
||||
static {
|
||||
IMPLOT_CONTEXT = ImPlot.createContext();
|
||||
ImPlot.createContext();
|
||||
}
|
||||
|
||||
public static void show(ImBoolean showImPlotWindow) {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import imgui.*;
|
||||
import imgui.ImFontConfig;
|
||||
import imgui.ImFontGlyphRangesBuilder;
|
||||
import imgui.ImGui;
|
||||
import imgui.ImGuiIO;
|
||||
import imgui.app.Application;
|
||||
import imgui.app.Configuration;
|
||||
import imgui.extension.imnodes.ImNodes;
|
||||
import imgui.extension.implot.ImPlot;
|
||||
import imgui.extension.implot.ImPlotContext;
|
||||
import imgui.flag.ImGuiConfigFlags;
|
||||
import imgui.flag.ImGuiInputTextFlags;
|
||||
import imgui.type.ImString;
|
||||
@@ -68,12 +68,6 @@ public class Main extends Application {
|
||||
fontConfig.destroy();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void disposeImGui() {
|
||||
ImNodes.destroyContext();
|
||||
super.disposeImGui();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void process() {
|
||||
ImGui.text("Hello, World! " + FontAwesomeIcons.Smile);
|
||||
|
||||
Reference in new issue
Block a user