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

Offline Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 5115
  • 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 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2770
    • 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: 442
    • 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: 5115
  • 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 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2770
    • 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: 5115
  • 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 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard