A graphics library or graphics API is a program library designed to aid in rendering computer graphics to a monitor. This typically involves providing optimized versions of functions that handle common rendering tasks. This can be done purely in software and running on the CPU, common in embedded systems, or being hardware accelerated by a GPU, more common in PCs. By employing these functions, a program can assemble an image to be output to a monitor. This relieves the programmer of the task of creating and optimizing these functions, and allows them to focus on building the graphics program. Graphics libraries are mainly used in video games and simulations.
The use of graphics libraries in connection with video production systems, such as Pixar RenderMan, is not covered here.
OS | Vulkan | Direct X | GNMX | Metal |
---|---|---|---|---|
Windows 10 | Free, Nvidia and AMD | Free, MS | no | no |
Mac | Free, MoltenVK | no | no | Free, Apple |
Linux | Free | no | no | no |
Android | Free | no | no | no |
iOS | Free, MoltenVK | no | no | Free, Apple |
Tizen | in Development | no | no | no |
Sailfish | in Development | no | no | no |
Xbox One | no | Free | no | no |
Orbis OS (PS4) | no | no | Free | no |
Nintendo Switch | Free | no | no | no |
HarmonyOS | Free | no | no | no |
OpenHarmony | Free | no | no | no |
Some APIs use Graphics Library (GL) in their name, notably OpenGL and WebGL.
Hardware
Dedicated Graphics Processor (Graphics Card)
Dedicated graphics processors use RAM allocated directly to the graphics processor rather than the computer’s main system memory. This RAM is usually specifically selected with the expected sequential load of the graphics card in mind (see GDDR). Sometimes systems with dedicated discrete graphics processors were called “DIS” systems in contrast to “UMA” systems.[1] Technologies such as 3dfx's Scan-Line Interleave, Nvidia's SLI and NVLink, and AMD's CrossFire allow multiple graphics processors to simultaneously display images on one screen, increasing the computational power available for graphics processing. However, these technologies are becoming increasingly rare; most games do not utilize all the capabilities of multiple graphics processors since most users cannot afford them.[2][3]
Integrated Graphics Processor
Today, laptops and mini-PCs require powerful integrated graphics. In many cases, quality integrated graphics can replace a discrete graphics card, enhancing laptop portability and mini-PC compactness while maintaining performance.[4] Integrated graphics processors (IGPU), integrated graphics, shared graphics solutions, integrated graphics processors (IGP), or unified memory architectures (UMA) use part of the computer’s RAM rather than dedicated graphics memory. IGP may be integrated into the motherboard as part of its northbridge chipset [5] or on a single chip (integrated circuit) with the central processor (e.g., AMD APU or Intel HD Graphics). On some motherboards, AMD’s IGP may use sideport dedicated memory: a separate fixed block of high-performance memory allocated for use by the graphics processor. As of early 2007, computers with integrated graphics accounted for about 90% of all PC shipments. They are less expensive to implement than dedicated graphics processing but generally less powerful. Historically, integrated processing was considered unsuitable for 3D games or graphics-intensive applications but could run less resource-demanding programs like Adobe Flash. Examples of such IGPs include offerings from SiS and VIA around 2004. However, modern integrated graphics processors such as AMD Accelerated Processing Unit and Intel Graphics Technology (HD, UHD, Iris, Iris Pro, Iris Plus, and Xe-LP) can handle 2D graphics or undemanding 3D graphics. In systems with a “unified memory architecture” (UMA), including modern AMD processors with integrated graphics, modern Intel processors with integrated graphics, Apple processors, PS5, and Xbox Series (among others), the CPU cores and GPU unit share the same pool of RAM and memory address space.[6]
Examples
- Allegro
- ANGLE
- Cairo (graphics)[7]
- DFPSR https://dawoodoz.com/dfpsr.html — GUI toolkit and software renderer
- DirectX[8] — a library created by Microsoft, to run under Windows operating systems and 'Direct' Xbox
- Display PostScript
- emWin[9] — an Embedded Graphics Library
- FLTK[10] — GUI Toolkit and Graphics Library
- GTK — a GUI toolkit
- Mesa 3D[11] — a library that implements OpenGL and Vulkan
- Mobile 3D Graphics API
- Qt[12] — cross-platform application framework
- Quartz (graphics layer)
- SFML[13]
- SIGIL[14] — Sound, Input, and Graphics Integration Library
- Simple DirectMedia Layer (SDL)[15]
- Skia Graphics Library[16]
- X Window System
See also
- List of 3D graphics libraries
- List of open source code libraries
- Anti-Grain Geometry
- Software development kit (SDK)
- OpenGL ES
- Graphical Widget toolkit graphical control elements drawn on bitmap displays
References
- ↑ "Nvidia Optimus". freedesktop.org. Retrieved 2025-08-22.
- ↑ "Crossfire and SLI market is just 300.000 units". fudzilla.com. Retrieved 2025-08-22.
- ↑ "Nvidia SLI and AMD CrossFire is dead – but should we mourn multi-GPU gaming?". techradar.com. Retrieved 2025-08-22.
- ↑ "Is Intel Iris Xe Graphics Good?". geekom.co.uk. Retrieved 2025-08-22.
- ↑ "Evolution Of Intel Graphics: i740 To Iris Pro". tomshardware.com. Retrieved 2025-08-22.
- ↑ "Intel's new graphics driver lets you dedicate up to 87% of laptop memory capacity to the iGPU for VRAM — Core Ultra CPUs get ""Shared GPU Memory Override"" feature". tomshardware.com. Retrieved 2025-08-22.
- ↑ "cairographics.org". cairographics.org. Retrieved 2016-01-03.
- ↑ "DirectX". DirectX Graphics and Gaming (Windows) - MSDN - Microsoft.
- ↑ "emWin Graphics Library | www.LPCware.com". Archived from the original on 2016-03-29.
- ↑ "FLTK GUI and Graphics Library | www.fltk.org".
- ↑ "The Mesa 3D Graphics Library".
- ↑ "Qt - Home".
- ↑ "SFML".
- ↑ "SIGIL: Sound, Input, and Graphics Integration Library". www.libsigil.com. Retrieved 2016-06-21.
- ↑ "Simple DirectMedia Layer - Homepage".
- ↑ "Skia Graphics Library".