import staticglfw import opengl # Init GLFW if init() == 0: raise newException(Exception, "Failed to Initialize GLFW") # Open window. var window = createWindow(800, 600, "GLFW3 WINDOW", nil, nil) # Connect the GL context. window.makeContextCurrent() # This must be called to make any GL function work loadExtensions() let monitor = getPrimaryMonitor() var count: cint let vids = monitor.getVideoModes(count.addr) echo count for i in 0..