This is an extension of Fabrice Bellard's TinyGL project.
TinyGL is an implementation of the OpenGL 1.2 specification in pure software, using no hardware acceleration. It is designed to be lightweight and fast, using highly optimized rasterization routines originally written by Fabrice Bellard.
The minimum requirements to compile & run this code is ISO C99 compliance and a 32-bit processor respectively.
TinyGL can also be installed as a system-wide library and then accessed with pkg-config
.
The original versions (in .tar.gz
format) can be found in the archive
folder.
bounce.c
- Bouncing ball demo by Brian Paulcube.c
- glDrawElements example by erysdrengears.c
- Gears demo by Brian Paulmech.c
- glutmech by Simon Parkinson-Batesspin.c
- Spinning box demo by Brian Paultexobj.c
- Textured object demo by Brian Paului_headless.c
- TinyGL withstb_image_write
by erysdrenui_sdl2.c
- TinyGL with SDL2 by erysdren
TinyGL has been tested with Clang, GCC, TinyCC, and Open Watcom. The following platforms have also been tested:
- Linux
- Windows
- Haiku
- MS-DOS
- OS/2
TinyGL is built via CMake.
Linux:
mkdir cmake-build && cd cmake-build
cmake ..
make
MIT License
Copyright (c) 1997-2022 Fabrice Bellard
Copyright (c) 2023-2024 erysdren (it/she/they)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.