Skip to content

Commit

Permalink
comfirm ImGui / CImGui 1.91.8
Browse files Browse the repository at this point in the history
  • Loading branch information
dinau committed Feb 7, 2025
1 parent 0784b03 commit f1f0e2b
Show file tree
Hide file tree
Showing 41 changed files with 439 additions and 98 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Linux OS(Ubuntu) Nim 2.2.0 compilation
name: Linux OS(Ubuntu) Nim 2.2.2 compilation

on:
push:
Expand All @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v4
- uses: jiro4989/setup-nim-action@v2
with:
nim-version: '2.2.0'
nim-version: '2.2.2'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- run: |
sudo apt install xorg-dev libopengl-dev libgl1-mesa-dev
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Windows OS Nim 2.2.0 compilation
name: Windows OS Nim 2.2.2 compilation

on:
push:
Expand All @@ -15,6 +15,6 @@ jobs:
- uses: actions/checkout@v4
- uses: jiro4989/setup-nim-action@v2
with:
nim-version: '2.2.0'
nim-version: '2.2.2'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- run: nimble all
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

![alt](https://github.com/dinau/imguin_examples/actions/workflows/windows.yml/badge.svg) ![alt](https://github.com/dinau/imguin_examples/actions/workflows/linux.yml/badge.svg)

Confirmed ImGui**n** verion: : **v1.91.6.15** (2025/01)
Confirmed ImGui**n** verion: : **v1.91.8.0** (2025/02)

This project is example project to use ImGui, ImPlot, futhark and so on with Nim language.
Wrapper libraies used are here [ImGuin](https://github.com/dinau/imguin)
Expand Down Expand Up @@ -593,14 +593,14 @@ GCC: v14.2.0, Clang: v18.1.8, MSVC: 2022
---

Windows11 (main)
- **Nim Compiler Version 2.2.0**
- **Nim Compiler Version 2.2.2**
- **GCC (Rev1, Built by MSYS2 project) 14.2.0**

```sh
pacman -S mingw-w64-ucrt-x86_64-gcc
```

- Clang version 19.1.6
- Clang version 19.1.7

```sh
pacman -S mingw-w64-ucrt-x86_64-clang
Expand Down
2 changes: 1 addition & 1 deletion config.nims.common
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
switch "path","../../imguin/src"
#switch "path","../../imguin/src"
switch "hint","User:off"
switch "hint","Name:off"
switch "hint","XDeclaredButNotUsed:off"
Expand Down
4 changes: 2 additions & 2 deletions config.nims.end
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ case TC
when LTO: # These options let link time slow while reducing code size.
switch "define", "lto"

echo ""
#echo ""
echo "#### [ ", TC, " ] Compiler ####"
echo ""
#echo ""
19 changes: 1 addition & 18 deletions glfw_opengl3/Makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
TARGET = $(notdir $(CURDIR))
NIMCACHE = .nimcache

ifeq ($(OS),Windows_NT)
EXE = .exe
else
OPT += --passL:-lstdc++
endif
include ../makefile.common.mk

all:
nim c -d:strip --nimcache:$(NIMCACHE) $(TARGET).nim

.PHONY: clean run

run: all
./$(TARGET)$(EXE)

clean:
@-rm $(TARGET)$(EXE)
@-rm -fr $(NIMCACHE)
12 changes: 6 additions & 6 deletions glfw_opengl3_base/glfw_opengl3_base.ini
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[Window]
startupPosX=282
startupPosY=85
viewportWidth=1024
viewportHeigth=800
startupPosX=314
startupPosY=108
viewportWidth=1010
viewportHeigth=824
colBGx=0.25
colBGy=0.6499999761581421
colBGz=0.8500000238418579
colBGy=0.65
colBGz=0.85
colBGw=1.0
theme=2
[Image]
Expand Down
2 changes: 1 addition & 1 deletion glfw_opengl3_base/imgui.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Collapsed=0

[Window][Nim: Dear ImGui test with Futhark]
Pos=12,12
Size=417,572
Size=417,567
Collapsed=0

[Window][imgui Another Window]
Expand Down
4 changes: 2 additions & 2 deletions glfw_opengl3_filedialog/glfw_opengl3_filedialog.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ startupPosY=136
viewportWidth=1024
viewportHeigth=800
colBGx=0.25
colBGy=0.6499999761581421
colBGz=0.8500000238418579
colBGy=0.65
colBGz=0.85
colBGw=1.0
theme=2
[Image]
Expand Down
12 changes: 12 additions & 0 deletions glfw_opengl3_filedialog/imgui.ini
Original file line number Diff line number Diff line change
Expand Up @@ -352,3 +352,15 @@ Column 0 Sort=0v
RefScale=19
Column 0 Sort=0v

[Table][0x518A3246,4]
RefScale=19
Column 0 Sort=0v

[Table][0xCD804044,4]
RefScale=19
Column 0 Sort=0v

[Table][0x63C83335,4]
RefScale=19
Column 0 Sort=0v

6 changes: 3 additions & 3 deletions glfw_opengl3_iconfont_viewer/glfw_opengl3_iconfont_viewer.ini
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[Window]
startupPosX=273
startupPosY=80
viewportWidth=996
viewportWidth=997
viewportHeigth=859
colBGx=0.25
colBGy=0.6499999761581421
colBGz=0.8500000238418579
colBGy=0.65
colBGz=0.85
colBGw=1.0
theme=2
[Image]
Expand Down
8 changes: 4 additions & 4 deletions glfw_opengl3_image_load/glfw_opengl3_image_load.ini
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[Window]
startupPosX=361
startupPosY=94
startupPosX=341
startupPosY=73
viewportWidth=1024
viewportHeigth=900
colBGx=0.25
colBGy=0.6499999761581421
colBGz=0.8500000238418579
colBGy=0.65
colBGz=0.85
colBGw=1.0
theme=2
[Image]
Expand Down
4 changes: 2 additions & 2 deletions glfw_opengl3_image_save/glfw_opengl3_image_save.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ startupPosY=85
viewportWidth=1024
viewportHeigth=900
colBGx=0.25
colBGy=0.6499999761581421
colBGz=0.8500000238418579
colBGy=0.65
colBGz=0.85
colBGw=1.0
theme=2
[Image]
Expand Down
6 changes: 3 additions & 3 deletions glfw_opengl3_imgui_toggle/glfw_opengl3_imgui_toggle.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
startupPosX=74
startupPosY=61
viewportWidth=1512
viewportHeigth=900
viewportHeigth=950
colBGx=0.25
colBGy=0.6499999761581421
colBGz=0.8500000238418579
colBGy=0.65
colBGz=0.85
colBGw=1.0
theme=2
[Image]
Expand Down
4 changes: 2 additions & 2 deletions glfw_opengl3_imguizmo/glfw_opengl3_imguizmo.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ startupPosX=512
startupPosY=192
viewportWidth=800
viewportHeigth=600
colBGx=0.07000000029802322
colBGy=0.2599999904632568
colBGx=0.07
colBGy=0.26
colBGz=0.75
colBGw=1.0
theme=2
Expand Down
4 changes: 2 additions & 2 deletions glfw_opengl3_imknobs/glfw_opengl3_imknobs.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ startupPosY=134
viewportWidth=1024
viewportHeigth=800
colBGx=0.25
colBGy=0.6499999761581421
colBGz=0.8500000238418579
colBGy=0.65
colBGz=0.85
colBGw=1.0
theme=2
[Image]
Expand Down
4 changes: 2 additions & 2 deletions glfw_opengl3_imnodes/glfw_opengl3_imnodes.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ startupPosY=140
viewportWidth=1024
viewportHeigth=800
colBGx=0.25
colBGy=0.6499999761581421
colBGz=0.8500000238418579
colBGy=0.65
colBGz=0.85
colBGw=1.0
theme=2
[Image]
Expand Down
4 changes: 2 additions & 2 deletions glfw_opengl3_implot/glfw_opengl3_implot.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ startupPosY=121
viewportWidth=1024
viewportHeigth=800
colBGx=0.25
colBGy=0.6499999761581421
colBGz=0.8500000238418579
colBGy=0.65
colBGz=0.85
colBGw=1.0
theme=2
[Image]
Expand Down
8 changes: 4 additions & 4 deletions glfw_opengl3_implot3d/glfw_opengl3_implot3d.ini
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[Window]
startupPosX=428
startupPosY=68
startupPosX=450
startupPosY=61
viewportWidth=1036
viewportHeigth=819
colBGx=0.25
colBGy=0.6499999761581421
colBGz=0.8500000238418579
colBGy=0.65
colBGz=0.85
colBGw=1.0
theme=2
[Image]
Expand Down
10 changes: 5 additions & 5 deletions glfw_opengl3_implot3d/glfw_opengl3_implot3d.nim
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import std/[math, random, sugar, paths]
import ../utils/appImGui
import implotFuncs
import implot3dFuncs

when defined(windows):
when not defined(vcc): # imguinVcc.res TODO WIP
Expand Down Expand Up @@ -66,10 +66,10 @@ proc imPlot3dWindow() =
# See ./implotFuncs.nim
let IMPLOT3D_AUTO_COL = vec4(0, 0, 0, -1) # Deduce color automatically
let IMPLOT3D_AUTO = -1.0.cfloat # Deduce variable automatically
ImPlot3dSetupAxes("x", "y", "z", 0.cint, 0.cint, 0.cint)
ImPlot3dPlotline_FloatPtr("f(x)", addr xs1[0], addr ys1[0], addr zs1[0], 1001, 0.cint, 0.cint, sizeof(xs1[0]).cint)
ImPlot3dSetNextMarkerStyle(ImPlot3DMarker_Circle.cint, IMPLOT3D_AUTO, IMPLOT3D_AUTO_COL, IMPLOT3D_AUTO, IMPLOT3D_AUTO_COL)
ImPlot3dPlotLine_DoublePtr("g(x)",addr xs2[0], addr ys2[0], addr zs2[0], 20, ImPlot3DLineFlags_Segments.cint, 0.cint, sizeof(xs2[0]).cint)
imPlot3dSetupAxes("x", "y", "z")
imPlot3dPlotline("f(x)", xs1.ptz, ys1.ptz, zs1.ptz, 1001)
imPlot3dSetNextMarkerStyle(Circle)
imPlot3dPlotLine("g(x)", xs2.ptz, ys2.ptz, zs2.ptz, 20, Segments)

#------
# main
Expand Down
4 changes: 2 additions & 2 deletions glfw_opengl3_implot3d/imgui.ini
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ Size=416,349
Collapsed=0

[Window][ImPlot3D Demo]
Pos=428,2
Pos=428,5
Size=600,810
Collapsed=0

[Window][Plot3D Window]
Pos=5,4
Pos=8,3
Size=416,456
Collapsed=0

Expand Down
Loading

0 comments on commit f1f0e2b

Please sign in to comment.