nuttx-apps/graphics/tinygl
Alan Carvalho de Assis a539a4d768 graphics/tinygl: add TinyGL software OpenGL library
Add TinyGL (https://github.com/C-Chads/tinygl), a small software-only
implementation of a subset of OpenGL 1.1 written in portable C99, by
Fabrice Bellard, Gek and C-Chads, under a zlib-style license.

Like graphics/lvgl, the sources are not kept in the repository: the
build downloads a pinned git revision from GitHub
(CONFIG_TINYGL_VERSION) and applies the NuttX patches that live next to
the Makefile:

  0001 zfeatures: allow overriding the feature switches at build time
  0002 Fix -Wstrict-prototypes warnings
  0003 zbuffer: do not over-read the source in ZB_copyFrameBuffer()
  0004 zbuffer.h: make the default allocator wrappers static inline

The TinyGL compile time features (pixel depth, GL_SELECT, GL_POLYGON,
blending, texture size, ...) are exposed as CONFIG_TINYGL_* Kconfig
options.  They change public structures, so Make.defs / CMakeLists.txt
export them to every application that includes <GL/gl.h> or
<zbuffer.h>.

Both the make and the CMake builds are supported.  An unpack stamp file
makes sure an object directory created inside the source tree is never
mistaken for downloaded sources.

Assisted-by: Claude Opus 5.5 (1M context)
Signed-off-by: Alan Carvalho de Assis <acassis@gmail.com>
2026-09-28 08:53:30 +08:00
..
.gitignore graphics/tinygl: add TinyGL software OpenGL library 2026-09-28 08:53:30 +08:00
0001-zfeatures-allow-overriding-the-feature-switches-at-b.patch graphics/tinygl: add TinyGL software OpenGL library 2026-09-28 08:53:30 +08:00
0002-Fix-Wstrict-prototypes-warnings.patch graphics/tinygl: add TinyGL software OpenGL library 2026-09-28 08:53:30 +08:00
0003-zbuffer-do-not-over-read-the-source-in-ZB_copyFrameB.patch graphics/tinygl: add TinyGL software OpenGL library 2026-09-28 08:53:30 +08:00
0004-zbuffer.h-make-the-default-allocator-wrappers-static.patch graphics/tinygl: add TinyGL software OpenGL library 2026-09-28 08:53:30 +08:00
0005-Declare-the-input-array-parameters-const-as-OpenGL-d.patch graphics/tinygl: add TinyGL software OpenGL library 2026-09-28 08:53:30 +08:00
CMakeLists.txt graphics/tinygl: add TinyGL software OpenGL library 2026-09-28 08:53:30 +08:00
Kconfig graphics/tinygl: add TinyGL software OpenGL library 2026-09-28 08:53:30 +08:00
Make.defs graphics/tinygl: add TinyGL software OpenGL library 2026-09-28 08:53:30 +08:00
Makefile graphics/tinygl: add TinyGL software OpenGL library 2026-09-28 08:53:30 +08:00