Author Topic: GLFW 3.3.2 wrapper start  (Read 371 times)

Offline Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 5073
  • O Rly?
    • View Profile
GLFW 3.3.2 wrapper start
« on: 2020-May-02 »
Hi my friends,

here is the start of a GLFW 3.3.2 Wrapper for GLBasic, maybe someone need it?!

!!!: Make sure to set the Path right in PROJECTS -> OPTIONS -> INK:
Code: (glbasic) [Select]
-L "PATH_TO_\lib-mingw" -lglfw3 -lgdi32 -lopengl32
Example:
Code: (glbasic) [Select]
-L "F:\Programmierung\GLBasic\GLFW_Bindings\lib-mingw" -lglfw3 -lgdi32 -lopengl32

Example Code in GLBasic:

Code: (glbasic) [Select]
glfwInit()


LOCAL win = glfwCreateWindow(800,600,"MyWindow!")

glfwMakeContextCurrent(win)



WHILE NOT glfwWindowShouldClose(win)



glfwSwapBuffers(win)
glfwPollEvents()
WEND

glfwTerminate()
END

Happy coding :)
I <3 DGArray's :D

PC:
AMD Ryzen 7 1700 @3.9GHz, 16GB HyperX Fury 3000MHz Ram, ASUS ROG GTX 1060 STRIX 6GB, Windows 10 Pro 64Bit, MSi Tomahawk B350 Mainboard

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2696
    • View Profile
Re: GLFW 3.3.2 wrapper start
« Reply #1 on: 2020-May-02 »
Wow, very cool, thanks Schranz0r!

I enjoy messing around with other APIs in GLB, this should be interesting.  :booze:
Cheers,

Ian.

“It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration.”
(E. W. Dijkstra)

Offline dreamerman

  • Global Moderator
  • Dr. Type
  • *******
  • Posts: 365
    • View Profile
    • my personal website
Re: GLFW 3.3.2 wrapper start
« Reply #2 on: 2020-May-03 »
Nice, was there any glfw wrapper/include examaple or only straight OpenGL stuff?
btw. You are on some quest? First SDL2 now GLFW, what's next? ;) Vulcan/Metal :D
Check my source code editor for GLBasic - link Update: 20.04.2020

Offline Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 5073
  • O Rly?
    • View Profile
Re: GLFW 3.3.2 wrapper start
« Reply #3 on: 2020-May-03 »
Raylib 3.0 at the moment ^^
Already linked it static, it's Crossplatform-Ready :)
I <3 DGArray's :D

PC:
AMD Ryzen 7 1700 @3.9GHz, 16GB HyperX Fury 3000MHz Ram, ASUS ROG GTX 1060 STRIX 6GB, Windows 10 Pro 64Bit, MSi Tomahawk B350 Mainboard

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2696
    • View Profile
Re: GLFW 3.3.2 wrapper start
« Reply #4 on: 2020-May-04 »
Ooh, Raylib + GLB could be the perfect match!
Cheers,

Ian.

“It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration.”
(E. W. Dijkstra)

Offline Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 5073
  • O Rly?
    • View Profile
Re: GLFW 3.3.2 wrapper start
« Reply #5 on: 2020-Jun-06 »
Had not much time lately, to bring it further... 
I <3 DGArray's :D

PC:
AMD Ryzen 7 1700 @3.9GHz, 16GB HyperX Fury 3000MHz Ram, ASUS ROG GTX 1060 STRIX 6GB, Windows 10 Pro 64Bit, MSi Tomahawk B350 Mainboard