An open API service indexing awesome lists of open source software.

https://github.com/dinau/nim-opengl-test

OpenGL test program with Nim language
https://github.com/dinau/nim-opengl-test

glfw glfw3 mandelbrot nim nim-lang opengl zig ziglang

Last synced: 3 months ago
JSON representation

OpenGL test program with Nim language

Awesome Lists containing this project

README

          

- [nim-opengl-test](#nim-opengl-test)
- [Draw Mandelbrot](#draw-mandelbrot)
- [Build and run](#build-and-run)
- [Static link](#static-link)
- [Operation](#operation)

### nim-opengl-test

---

OpenGL test program with Nim language

This program is referred from this page,
* https://github.com/rylmovuk/zig-opengl-test
Thank you nice demo.

and converted to Nim language.

#### Draw Mandelbrot

---

#### Build and run

---

```sh
git clone http://github.com/dinau/nim-opengl-test.git
cd nim-opengl-test
nimble run

or

make run
```

#### Static link

---

If you'd like to statically link glfw3 library,
enable below line,

```
switch "define","glfwStaticLib"`
```

in `config.nims`

#### Operation

---

* Pause drawing: Press `S` or `Space` key : toggled
* Reset windows size: Press `R` key
* Quit program: Press `Q` key or `Esc` key