Skip to content

Commit

Permalink
Merge branch 'onefile'
Browse files Browse the repository at this point in the history
  • Loading branch information
dinau committed Jul 4, 2024
2 parents 9245882 + bc3f1c3 commit f229a96
Show file tree
Hide file tree
Showing 22 changed files with 780 additions and 900 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<<<<<<< HEAD
oldsrc/
cat.zig
err.txt
Expand Down
33 changes: 9 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
- [zig_glfw_opengl3_implot](#zig_glfw_opengl3_implot)
- [ImPlot Demo written in Zig lang.](#implot-demo-written-in-zig-lang)
- [Build and run](#build-and-run-1)
- [ImPlot demo source in Zig](#implot-demo-source-in-zig)
- [Plots Tab](#plots-tab)
- [LinePlots (Dynamic)](#lineplots-dynamic)
- [BarGroups](#bargroups)
Expand All @@ -36,7 +37,7 @@

This project aims to simply and easily build [Dear ImGui](https://github.com/ocornut/imgui) examples with **Zig language** using [CImGui](https://github.com/cimgui/cimgui) / [CImPlot](https://github.com/cimgui/cimplot) as first step.

ImGui version **1.90.9doc** (2024/07)
ImGui/CimGui version **1.90.9dock** (2024/07)

## Prerequisites

Expand Down Expand Up @@ -135,50 +136,42 @@ imPlotDemo
make run # or zig build --release=fast run
```

### ImPlot demo source in Zig

---

[demoAll.zig](examples/imPlotDemo/src/demoAll.zig)

### Plots Tab

---

#### LinePlots (Dynamic)

[Plots/LinePlots.zig](examples/imPlotDemo/src/plots/LinePlots.zig)

![alt](examples/imPlotDemo/img/LinePlots.png)

#### BarGroups

[Plots/BarGroups.zig](examples/imPlotDemo/src/plots/BarGroups.zig)

![alt](examples/imPlotDemo/img/BarGroups.png)

#### BarStacks

[Plots/BarStacks.zig](examples/imPlotDemo/src/plots/BarStacks.zig)

![alt](examples/imPlotDemo/img/BarStacks.png)

#### PieCharts

[Plots/PieCharts.zig](examples/imPlotDemo/src/plots/PieCharts.zig)

![alt](examples/imPlotDemo/img/PieCharts.png)

#### Heatmaps

[Plots/Heatmaps.zig](examples/imPlotDemo/src/plots/Heatmaps.zig)

![alt](examples/imPlotDemo/img/Heatmaps.png)

#### Histogram2D

[Plots/Histogram2D.zig](examples/imPlotDemo/src/plots/Histogram2D.zig)

![alt](examples/imPlotDemo/img/Histogram2D.png)

#### Images

[Plots/Images.zig](examples/imPlotDemo/src/plots/Images.zig)

![alt](examples/imPlotDemo/img/Images.png)

### Axes Tab
Expand All @@ -187,8 +180,6 @@ make run # or zig build --release=fast run

#### LogScale

[Axes/LogScale.zig](examples/imPlotDemo/src/axes/LogScale.zig)

![alt](examples/imPlotDemo/img/LogScale.png)

### Subplots Tab
Expand All @@ -197,8 +188,6 @@ make run # or zig build --release=fast run

#### Tables (Dynamic)

[SubPlots/Tables.zig](examples/imPlotDemo/src/subplots/Tables.zig)

![alt](examples/imPlotDemo/img/Tables.png)

### Tools Tab
Expand All @@ -207,8 +196,6 @@ make run # or zig build --release=fast run

#### DragRects

[Tools/DragRects.zig](examples/imPlotDemo/src/tools/DragRects.zig)

![alt](examples/imPlotDemo/img/DragRects.png)


Expand Down Expand Up @@ -241,9 +228,7 @@ https://github.com/JBetz/build-sdl3-win32

---

- clang version 18.1.6
- gcc.exe (Rev2, Built by MSYS2 project) 13.2.0
- git version 2.41.0.windows.3
- git version 2.45.2.windows.1
- make: GNU Make 4.3
- Python 3.12.3
- zig: 0.12.0 (zig cc: clang version 17.0.6)
Expand Down
6 changes: 3 additions & 3 deletions examples/imPlotDemo/imgui.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Size=400,400
Collapsed=0

[Window][Dear ImGui Demo]
Pos=446,719
Pos=450,607
Size=550,277
Collapsed=1

Expand Down Expand Up @@ -39,7 +39,7 @@ Size=382,342
Collapsed=0

[Window][ Dear ImGui]
Pos=447,749
Pos=511,768
Size=444,364
Collapsed=1

Expand Down Expand Up @@ -80,7 +80,7 @@ Collapsed=0

[Window][ ImPlot demo: All demos have been written in Zig lang.]
Pos=21,13
Size=531,554
Size=531,724
Collapsed=0

[Table][0x53416836,3]
Expand Down
37 changes: 0 additions & 37 deletions examples/imPlotDemo/src/Help/Help.zig

This file was deleted.

30 changes: 0 additions & 30 deletions examples/imPlotDemo/src/axes/LogScale.zig

This file was deleted.

30 changes: 0 additions & 30 deletions examples/imPlotDemo/src/config/Config.zig

This file was deleted.

Loading

0 comments on commit f229a96

Please sign in to comment.