mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-10-01 19:36:36 +00:00
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>
25 lines
1.1 KiB
Text
25 lines
1.1 KiB
Text
############################################################################
|
|
# apps/examples/tinygl/Make.defs
|
|
#
|
|
# 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.
|
|
#
|
|
############################################################################
|
|
|
|
ifneq ($(CONFIG_EXAMPLES_TINYGL),)
|
|
CONFIGURED_APPS += $(APPDIR)/examples/tinygl
|
|
endif
|