Skip to content

dinau/nim-opengl-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nim-opengl-test


OpenGL test program with Nim language

This program is referred from this page,

and converted to Nim language.

Draw Mandelbrot


Note: I only confirmed on Windows10 32bit enviromnet at this moment.

Build and run


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

Nim Verson and make


If you'd like to use nimble build/run or etc,
Nim version must be nim-1.6.0 or later.
Because GFLW-3.3 warpper depends on nim-1.6.0 or later.

However if you'd like to use nim-1.0.0 or later,
use to build,

make

Winodws10 64bit dll


If you are on Windows10 64bit OS,
replace glfw3.dll with glfw3.dll-64bit/glfw3.dll.

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 key : toggled
  • Quit program: Press Q key or Esc key
  • Reset windows size: Press R key