Package 'cgltf'

Title: Header-Only Library for Loading 'glTF' Models
Description: Provides the header-only 'cgltf' C library for reading 'glTF' (Graphics Library Transmission Format) 3D models and their binary 'GLB' representation <https://github.com/jkuhlmann/cgltf>. Supports scene hierarchies, mesh data, materials, skins, morph targets, and animation channels.
Authors: Tyler Morgan-Wall [aut, cre, cph] (ORCID: <https://orcid.org/0000-0002-3131-3814>, R package code and documentation), Johannes Kuhlmann [aut, cph] (Author of the bundled cgltf library)
Maintainer: Tyler Morgan-Wall <[email protected]>
License: MIT + file LICENSE
Version: 1.15.0-0
Built: 2026-11-16 06:17:13 UTC
Source: https://github.com/tylermorganwall/cgltf

Help Index


Check the Bundled cgltf Library

Description

Verify that the bundled library can parse and validate a small glTF scene and compute a node transformation.

Usage

cgltf_test()

Details

Calls a small C routine compiled against the bundled header when the package is installed. The checks also verify that malformed JSON is rejected. No compiler is needed to run this function in an installed package.

Value

A logical scalar: TRUE if all checks pass, otherwise FALSE.

Examples

# Check parsing and transformations for a scene with a translated node.
stopifnot(cgltf_test())