Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

GLFW

From Wikipedia, the free encyclopedia
Software library
This article has multiple issues. Please helpimprove it or discuss these issues on thetalk page.(Learn how and when to remove these messages)
This articleneeds additional citations forverification. Please helpimprove this article byadding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "GLFW" – news ·newspapers ·books ·scholar ·JSTOR
(May 2015) (Learn how and when to remove this message)
This articlerelies excessively onreferences toprimary sources. Please improve this article by addingsecondary or tertiary sources.
Find sources: "GLFW" – news ·newspapers ·books ·scholar ·JSTOR
(September 2015) (Learn how and when to remove this message)
(Learn how and when to remove this message)
GLFW
Developer(s)The GLFW Development Team
Stable release
3.4 / February 23, 2024; 12 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 withOpenGL. It provides programmers with the ability to create and manage windows and OpenGL contexts, as well as handlejoystick,keyboard andmouse 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 awindow, 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 areFreeGLUT (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 includingAda,C#,Common Lisp,D,Delphi,Go,Harbour,Haskell,Java,Julia,Python,Rebol,Red,Ruby andRust, among others.[7]

Back-ends

[edit]

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

See also

[edit]

References

[edit]
  1. ^"Releases · glfw/glfw".github.com. Retrieved2024-02-23.
  2. ^"License | GLFW".glfw.org. Retrieved2021-04-10.
  3. ^"GLFW homepage".www.glfw.org. Retrieved2022-09-15.
  4. ^"GLFW: Input guide".www.glfw.org. Retrieved2021-02-07.
  5. ^"LearnOpenGL - Creating a window".www.learnopengl.com. Retrieved2022-09-15.
  6. ^"GLFW – FAQ". Retrieved11 July 2015.
  7. ^"GLFW Programming language bindings". Retrieved4 September 2019.
  8. ^"GLFW: New features in 3.2".

External links

[edit]
Retrieved from "https://en.wikipedia.org/w/index.php?title=GLFW&oldid=1209974387"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp