Graphics & Games

This content was generated with the assistance of AI and should be verified against the official documentation before being relied on in production.

Every image on a screen, from a spinning cube in a browser to a game with millions of triangles per frame, is drawn by a GPU that is driven through software. This section explains how that software is layered and how to use it. It starts with the ideas that every graphics and game library shares: the GPU, the rendering pipeline, the mathematics of transforms and rotations, meshes, textures, lighting, colour, shading languages, scene graphs, the game loop and the basics of augmented reality. Later parts of the section go deep into six libraries: OpenGL, WebGL, Metal, Vulkan, Unity and Unreal Engine.

The overview defines graphics APIs, rendering frameworks and game engines, gives the targeted versions, the learning path and reading order through the general pages, the shared Bookshelf scene and assets, the cheat sheets, and a concept-to-page map and coverage map of every page of the section.

Comparison
OpenGL
WebGL
Metal
Vulkan
Unity
Unreal Engine

Sections

  • Overview — graphics APIs and game engines, targeted versions, learning path, reading order, cheat sheets, the shared Bookshelf scene and a concept-to-page map of the general pages.

  • Comparison — the six libraries side by side with dated metrics, scores and recommendations by purpose.

  • OpenGL — desktop OpenGL 4.6, OpenGL ES 3.2, GLSL and EGL, from a first triangle to a small game, and how to port to Vulkan, Metal and WebGPU.

  • WebGL — 3D graphics in the browser, the three.js framework on top of it, and WebGPU as the successor API.

  • Metal — Apple’s graphics and compute API (Metal 4, MSL 4.1) for iOS, iPadOS, macOS, tvOS and visionOS.

  • Vulkan — the explicit, cross-platform Khronos API (Vulkan 1.4) for desktop, mobile and embedded GPUs.

  • Unity — a general-purpose game engine with C# scripting and the Universal Render Pipeline (Unity 6.3 LTS).

  • Unreal Engine — a game engine with C++ and Blueprint scripting, Nanite and Lumen (Unreal Engine 5.8).

Bibliography

Every entry links to its official website or to the publisher’s page. Each page lists the subset it derives from under its own == References heading.

Books

The books are consulted references for concept coverage. No text, figure or code is copied from them, and where a book and the official documentation disagree the documentation is followed.

  • Daniel Selman, Java 3D Programming, Manning, March 2002, ISBN 978-1-930110-35-9: Manning

  • Sun Microsystems, The Java 3D API Specification, version 1.3, Sun Microsystems, 2002. Sun’s page no longer exists; the code and community documentation are at JogAmp and jogamp/java3d-core, with the companion java3d-utils and java3d-examples.

  • Raghav Sood, Pro Android Augmented Reality, Apress, July 2012, ISBN 978-1-4302-3945-1 (eBook 978-1-4302-3946-8): Apress on SpringerLink and the companion code

  • Richard S. Wright Jr., Benjamin Lipchak and Nicholas Haemel, OpenGL SuperBible: Comprehensive Tutorial and Reference, 4th edition, Addison-Wesley, 2007, ISBN 978-0-321-49882-3 (introductory chapters on the general pages, the whole book on the OpenGL pages): InformIT

  • Aaftab Munshi, Dan Ginsburg and Dave Shreiner, OpenGL ES 2.0 Programming Guide, Addison-Wesley, 2008, ISBN 978-0-321-50279-7: InformIT and the companion code

  • Dan Ginsburg, Budirijanto Purnomo, Dave Shreiner and Aaftab Munshi, OpenGL ES 3.0 Programming Guide, 2nd edition, Addison-Wesley, 2014, ISBN 978-0-321-93388-1 (introductory chapters on the general pages, the whole book on the OpenGL pages): InformIT and the companion code

  • John Kessenich (ed.), The OpenGL Shading Language, Version 1.50 (revision 9, 24 July 2009), Khronos Group, 2009: specification

  • Kevin Brothaler, OpenGL ES 2 for Android: A Quick-Start Guide, Pragmatic Bookshelf, 2013, ISBN 978-1-937785-34-5: Pragmatic Bookshelf, with the downloads on the publisher page

  • Romain Marucchi-Foino, Game and Graphics Programming for iOS and Android with OpenGL ES 2.0, Wrox / Wiley, 2012, ISBN 978-1-119-97591-5: Wiley, with the SDK on the publisher’s site

  • Tony Parisi, WebGL: Up and Running, O’Reilly, August 2012, ISBN 978-1-449-32357-8: O’Reilly and the companion code

  • Jos Dirksen, Learning Three.js: the JavaScript 3D Library for WebGL, 2nd edition, Packt, March 2015, ISBN 978-1-78439-221-5: Packt and the companion code

  • Jos Dirksen, Three.js Cookbook, Packt, January 2015, ISBN 978-1-78398-118-2: Packt and the companion code

  • Caroline Begbie and Marius Horga, Metal by Tutorials: Beginning Game Engine Development with Metal, 4th edition, Kodeco, about 2023 (the year is inferred from its Xcode 15 and iOS 17 targets; the publisher page now shows the 5th edition of November 2025, which targets Swift 6 and Xcode 26 and still teaches Metal 3), no ISBN listed: Kodeco and the companion code of the 4th edition

  • Janie Clayton, Metal Programming Guide: Tutorial and Reference via Swift, Addison-Wesley, December 2017 (copyright 2018), ISBN 978-0-13-466894-9: InformIT and the companion code

  • Graham Sellers, with John Kessenich, Vulkan Programming Guide: The Official Guide to Learning Vulkan, Addison-Wesley, November 2016 (copyright 2017), ISBN 978-0-13-446454-1, which targets Vulkan 1.0, SDK 1.0.22, glslangValidator and SPIR-V 1.0: InformIT, Pearson and the companion site

  • Pawel Lapinski, Vulkan Cookbook, Packt, April 2017, ISBN 978-1-78646-815-4, which targets Vulkan 1.0 with the C API and manual function loading: Packt (the page refused automated requests when it was checked, so the address comes from the ISBN) and the companion code

  • Joseph Hocking, Unity in Action: Multiplatform game development in C#, 3rd edition, Manning, January 2022, ISBN 978-1-61729-933-9, which targets Unity 2020.3 LTS, the Built-in Render Pipeline and the legacy Input Manager: Manning and the companion code

  • David Baron, Game Development Patterns with Unity 2021, 2nd edition, Packt, July 2021, ISBN 978-1-80020-081-4, which targets Unity 2021.1 and later: Packt (the page refused automated requests when it was checked, so the address comes from search results; the edition, date and ISBN match the O’Reilly listing) and the companion code

  • Marcos Romero and Brenden Sewell, Blueprints Visual Scripting for Unreal Engine, 2nd edition, Packt, August 2019, ISBN 978-1-78934-706-7, which targets UE 4.20 to 4.22: Packt (the page refused automated requests when it was checked, so the address comes from the ISBN; the edition, date and ISBN match the O’Reilly listing as shown in search results) and the companion code

  • Nitish Misra, Learning Unreal Engine Android Game Development, Packt, June 2015, ISBN 978-1-78439-436-3, which targets UE 4.4 to 4.7 and NDK r9c: Packt (the address comes from search results, which also show the date and ISBN; Packt offers the code as a download from the book’s page)

  • Rachel Cordone, Unreal Development Kit Game Programming with UnrealScript: Beginner’s Guide, Packt, December 2011, ISBN 978-1-84969-192-5, which targets UDK 2011 (Unreal Engine 3): Packt (the page refused automated requests when it was checked, so the address, date and ISBN come from search results)

  • Benjamin Carnall, Unreal Engine 4.X By Example, Packt, July 2016, ISBN 978-1-78588-553-2, which targets UE 4.10 and 4.11: Packt (the page refused automated requests when it was checked, so the address comes from search results; the date and ISBN match the O’Reilly listing as shown in those results) and the companion code

  • Joanna Lee, John P. Doran and Nitish Misra, Unreal Engine: Game Development from A to Z, a Packt learning path that combines three books, August 2016, ISBN 978-1-78712-328-1, which targets UE 4.7 to 4.10: the O’Reilly listing as shown in search results (no Packt product page was found) and the companion code

  • Zhenyu George Li and E. Wyn Roberts, Unreal Engine 5 Game Development with C++ Scripting, Packt, August 2023, ISBN 978-1-80461-393-1, which targets UE 5.0 and later with Visual Studio 2022: Packt (the page refused automated requests when it was checked, so the address comes from the ISBN; the date and ISBN match the O’Reilly listing as shown in search results, which names Li alone, while a library record credits Roberts with the foreword) and the companion code

  • Cristina Cañero Morales, Apuntes de OpenGL y GLUT, course notes of 22 pages in Spanish, unpublished, year not stated. There is no official page, so the notes are cited without a link.

Libraries, engines and tools

References