nuttx-apps/examples/tinygl/Makefile
Alan Carvalho de Assis b66303e26a examples/tinygl: add TinyGL gears demo
Render Brian Paul's classic OpenGL "gears" demo with TinyGL on a NuttX
framebuffer device.  TinyGL draws each frame into its own ZBuffer, which
is then copied to the mmap()ed framebuffer (plus FBIO_UPDATE when
CONFIG_FB_UPDATE is enabled), so partially drawn frames are never shown.
The frame rate is printed every five seconds.

Usage: tinygl [frames] [fbdev]

Tested on sim:tinygl (640x480, 32 bpp): about 1400 FPS with
CONFIG_DEBUG_FULLOPT on an x86_64 host, with both make and CMake.

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

36 lines
1.3 KiB
Makefile

############################################################################
# apps/examples/tinygl/Makefile
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
# ASF licenses this file to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance with the
# License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
############################################################################
include $(APPDIR)/Make.defs
# TinyGL gears demo built-in application info
PROGNAME = $(CONFIG_EXAMPLES_TINYGL_PROGNAME)
PRIORITY = $(CONFIG_EXAMPLES_TINYGL_PRIORITY)
STACKSIZE = $(CONFIG_EXAMPLES_TINYGL_STACKSIZE)
MODULE = $(CONFIG_EXAMPLES_TINYGL)
# TinyGL gears demo
MAINSRC = tinygl_main.c
include $(APPDIR)/Application.mk