Codesnippets > Inline / 3rd party

GLFW 3.3.2 wrapper start

(1/2) > >>

Schranz0r:
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) ----L "PATH_TO_\lib-mingw" -lglfw3 -lgdi32 -lopengl32
--- End code ---

Example:

--- Code: (glbasic) ----L "F:\Programmierung\GLBasic\GLFW_Bindings\lib-mingw" -lglfw3 -lgdi32 -lopengl32
--- End code ---


Example Code in GLBasic:


--- Code: (glbasic) ---glfwInit()


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

glfwMakeContextCurrent(win)



WHILE NOT glfwWindowShouldClose(win)



glfwSwapBuffers(win)
glfwPollEvents()
WEND

glfwTerminate()
END
--- End code ---

Happy coding :)

bigsofty:
Wow, very cool, thanks Schranz0r!

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

dreamerman:
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

Schranz0r:
Raylib 3.0 at the moment ^^
Already linked it static, it's Crossplatform-Ready :)

bigsofty:
Ooh, Raylib + GLB could be the perfect match!

Navigation

[0] Message Index

[#] Next page

Go to full version