Skip to content

Latest commit

 

History

History
75 lines (52 loc) · 2.77 KB

README.md

File metadata and controls

75 lines (52 loc) · 2.77 KB

TinyGL

a 3D render of multiple gears floating in empty space, one red, one blue, and one green.

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.

Examples

  • bounce.c - Bouncing ball demo by Brian Paul
  • cube.c - glDrawElements example by erysdren
  • gears.c - Gears demo by Brian Paul
  • mech.c - glutmech by Simon Parkinson-Bates
  • spin.c - Spinning box demo by Brian Paul
  • texobj.c - Textured object demo by Brian Paul
  • ui_headless.c - TinyGL with stb_image_write by erysdren
  • ui_sdl2.c - TinyGL with SDL2 by erysdren

Thirdparty

Platforms

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

Building

TinyGL is built via CMake.

Linux:

mkdir cmake-build && cd cmake-build
cmake ..
make

License

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.