Skip to content
Permalink
Browse files

Update ImGUI to v1.73 and move tests to examples folder as master branch

  • Loading branch information...
lmariscal committed Sep 25, 2019
1 parent ced8c00 commit 9aad7bbc7bdfd9a0aa6dd34ee445a22f04ef83bc
@@ -1,6 +1,6 @@
[submodule "src/nimgl/private/cimgui"]
path = src/nimgl/private/cimgui
url = https://github.com/cimgui/cimgui.git
url = https://github.com/nimgl/cimgui.git
[submodule "src/nimgl/private/glfw"]
path = src/nimgl/private/glfw
url = https://github.com/glfw/glfw.git
@@ -0,0 +1,21 @@
## Examples

This examples purpose is to help check the stability of the bindings and to give some example on
how to use them on other projects. So feel free to check the tests and learn on how to use them.

I still need to add more examples to test the stability of the bindings. Some bindings depend on
another bindings for certain functionality so expect some tests to contain several bindings.

As this is a graphics library it needs some specific hardware that most of the computers have but
cannot test on some CI servers. In the future it would be nice to implement the CI service with
Xvfb. All the tests go through the CI by compiling them but they are not tested in execution.

### Which examples are integrated

| File | Purpose | CI |
|-------------|-------------------------------------------------------|-----|
| tglfw.nim | GLFW is initialized correctly and that a window opens | :x: |
| topengl.nim | OpenGL bindings work and give out correct data | :x: |
| timgui.nim | ImGui actually build and display demo window | :x: |

###### More to come...
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -9,7 +9,7 @@ skipDirs = @[".github", "tests"]

# Dependencies

requires "nim >= 0.20.0"
requires "nim >= 1.0.0"

# Tasks

@@ -36,9 +36,9 @@ proc walkRecursive(dir: string) =
for od in listDirs(dir):
walkRecursive(od)

task test, "Run files under tests dir":
task test, "Run files under examples dir":
exec("nimble install -y glm")
for file in listFiles("tests"):
for file in listFiles("examples"):
if file[6] == 't' and file.nimExt:
echo "\n[info] testing " & file[6..<file.len]
exec("nim c -d:opengl_debug " & file)

Large diffs are not rendered by default.

This file was deleted.

0 comments on commit 9aad7bb

Please sign in to comment.
You can’t perform that action at this time.