Jump to content

Recommended Posts

Posted

Hello all,

 

I have made a wrapper for GLFw3 for use with AutoIt 3.  You can grab it here from here: Here

 

#include <GLFW3.au3>

Local $gl = glfwInit()

if $gl = -1 Then
   MsgBox(1,"Error","Failed to init GLFW!")
EndIf

Local $w = 640, $h = 480

Local $win = glfwCreateWindow($w,$h,"MyWin",Null,Null)

If $win = -1 Then
   MsgBox(1,"Error","Failed to create GLFW Window!")
   glfwTerminate()
EndIf

glfwMakeContextCurrent($win)

While not glfwWindowShouldClose($win)

   ;glfwSwapBuffers($win)
   glfwPollEvents()

WEnd

glfwTerminate()

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...