Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Software architecture  



1.1  Programming language bindings  





1.2  Back-ends  







2 See also  





3 References  





4 External links  














GLFW






Español
فارسی
Français
Norsk bokmål
Português
Русский
Suomi
Türkçe

 

Edit links
 









Article
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Cite this page
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 


GLFW
Developer(s)The GLFW Development Team
Stable release

3.4 / February 23, 2024; 4 months ago (2024-02-23)[1]

Repository
Written inC
Operating systemLinux, macOS, Microsoft Windows, FreeBSD, NetBSD, OpenBSD
PlatformCross-platform
TypeAPI
Licensezlib/libpng License[2]
Websitewww.glfw.org

GLFW (Graphics Library Framework) is a lightweight utility library for use with OpenGL. It provides programmers with the ability to create and manage windows and OpenGL contexts, as well as handle joystick, keyboard and mouse input.[3]

Software architecture

[edit]

GLFW is a small C library that allows the creation and management of windows with OpenGL contexts, making it also possible to use multiple monitors and video modes. It provides access to input from the keyboard, mouse, and joysticks.[4] The API provides a thin, multi-platform abstraction layer, primarily for applications whose sole graphics output is through the OpenGL API. While GLFW is very useful when developing multi-platform OpenGL applications, single-platform developers can also benefit from avoiding having to deal with a platform-specific API.

GLFW is used in programs that require a window, due to OpenGL not providing any mechanisms for creating the necessary contexts, managing windows, user input, timing, etc.[5] There are several other libraries available for aiding OpenGL development. The most common ones are FreeGLUT (an Open Source implementation of GLUT) and SDL. However, FreeGLUT is mostly concerned with providing a stable clone of GLUT, while SDL is too large for some people and has never had OpenGL as its main focus. GLFW is predicated on the assumption that there is room for a lightweight, modern library for managing OpenGL contexts, windows, and input.

GLFW is not a user-interface library, platform-specific library, image-loading library or a threading library. Additionally, it cannot render independently or playback sound. [6]

Programming language bindings

[edit]

Although GLFW is written in C, bindings do exist to use the API with other programming languages including Ada, C#, Common Lisp, D, Delphi, Go, Harbour, Haskell, Java, Julia, Python, Rebol, Red, Ruby and Rust, among others.[7]

Back-ends

[edit]

GLFW version 3.2 has experimental support for Wayland through compile-time flags.[8]

See also

[edit]

References

[edit]
  1. ^ "Releases · glfw/glfw". github.com. Retrieved 2024-02-23.
  • ^ "License | GLFW". glfw.org. Retrieved 2021-04-10.
  • ^ "GLFW homepage". www.glfw.org. Retrieved 2022-09-15.
  • ^ "GLFW: Input guide". www.glfw.org. Retrieved 2021-02-07.
  • ^ "LearnOpenGL - Creating a window". www.learnopengl.com. Retrieved 2022-09-15.
  • ^ "GLFW – FAQ". Retrieved 11 July 2015.
  • ^ "GLFW Programming language bindings". Retrieved 4 September 2019.
  • ^ "GLFW: New features in 3.2".
  • [edit]
    Retrieved from "https://en.wikipedia.org/w/index.php?title=GLFW&oldid=1209974387"

    Categories: 
    Application programming interfaces
    C (programming language) libraries
    Cross-platform software
    Free software programmed in C
    Linux APIs
    MacOS APIs
    OpenGL
    Software using the zlib license
    Windows APIs
    Hidden categories: 
    Articles with short description
    Short description is different from Wikidata
    Articles needing additional references from May 2015
    All articles needing additional references
    Articles lacking reliable references from September 2015
    All articles lacking reliable references
    Articles with multiple maintenance issues
    Official website different in Wikidata and Wikipedia
     



    This page was last edited on 24 February 2024, at 11:26 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki