Skip to content

Commit 6bfc150

Browse files
committed
Updated bins for android example.
1 parent b29f97f commit 6bfc150

File tree

11 files changed

+12
-1
lines changed

11 files changed

+12
-1
lines changed

ExampleAndroid/CustomRenderer.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@
55
using Hexa.NET.ImGui.Backends.Android;
66
using Hexa.NET.ImGui.Backends.OpenGL3;
77
using Hexa.NET.ImGui.Widgets;
8+
using Hexa.NET.ImNodes;
89
using Javax.Microedition.Khronos.Opengles;
910

1011
public class CustomRenderer : Java.Lang.Object, GLSurfaceView.IRenderer
1112
{
12-
static bool WantTextInputLast = false;
13+
private static bool WantTextInputLast = false;
1314

1415
public void OnDrawFrame(IGL10? gl)
1516
{

ExampleAndroid/ExampleAndroid.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
<ItemGroup>
2323
<ProjectReference Include="..\Hexa.NET.ImGui.Backends\Hexa.NET.ImGui.Backends.csproj" />
2424
<ProjectReference Include="..\Hexa.NET.ImGui\Hexa.NET.ImGui.csproj" />
25+
<ProjectReference Include="..\Hexa.NET.ImNodes\Hexa.NET.ImNodes.csproj" />
2526
</ItemGroup>
2627

2728

ExampleAndroid/MainActivity.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using Hexa.NET.ImGui.Utilities;
77
using Hexa.NET.ImGui.Widgets;
88
using Hexa.NET.ImGui.Widgets.Dialogs;
9+
using Hexa.NET.ImNodes;
910

1011
[Activity(Label = "ExampleAndroid", MainLauncher = true, Icon = "@mipmap/ic_launcher", Theme = "@style/AppTheme")]
1112
public unsafe class MainActivity : Activity
@@ -18,6 +19,11 @@ protected override void OnCreate(Bundle savedInstanceState)
1819
var guiContext = ImGui.CreateContext();
1920
ImGui.SetCurrentContext(guiContext);
2021

22+
ImNodes.SetImGuiContext(guiContext);
23+
var nodesContext = ImNodes.CreateContext();
24+
ImNodes.SetCurrentContext(nodesContext);
25+
ImNodes.StyleColorsDark(ImNodes.GetStyle());
26+
2127
var io = ImGui.GetIO();
2228
io.ConfigFlags |= ImGuiConfigFlags.DockingEnable; // Enable Docking
2329
io.ConfigViewportsNoAutoMerge = false;
@@ -65,6 +71,9 @@ public override void DrawContent()
6571
ImGui.Text("Hello World!");
6672

6773
ImGui.InputText("TextInput", ref s, 1024);
74+
75+
ImNodes.BeginNodeEditor();
76+
ImNodes.EndNodeEditor();
6877
}
6978
}
7079
}
166 KB
Binary file not shown.
1.74 MB
Binary file not shown.
1.73 MB
Binary file not shown.
4.16 MB
Binary file not shown.
158 KB
Binary file not shown.
1.78 MB
Binary file not shown.
1.75 MB
Binary file not shown.

0 commit comments

Comments
 (0)