mcpp index

compat.tinygltf

#include

tinygltf v3 — C11-first glTF 2.0 loader and writer (POD API, arena allocator)

#include <tiny_gltf_v3.h>
mcpp add compat.tinygltf@3.1.0

用法

來自本倉庫自己的測試專案 —— CI 真的編譯並執行過,不是為了網站寫的。

#include <cstdio>
#include <cstring>
#include <filesystem>
#include <string>

#include <tiny_gltf_v3.h>

static const char *kMinimalGltf = R"({
  "asset": { "version": "2.0" },
  "scenes": [ { "nodes": [] } ]
})";

int main() {
    // 1. In-memory parse still works with `default-features = false`.
    tinygltf3::Model mem_model;
    tinygltf3::ErrorStack mem_errors;
    tg3_parse_options opts;
    tg3_parse_options_init(&opts);

    tg3_error_code err = tg3_parse(
        mem_model.get(), mem_errors.get(),
        reinterpret_cast<const uint8_t *>(kMinimalGltf),
// …

tests/examples/tinygltf-nofs/tests/test_tinygltf_nofs.cpp · 專案 tests/examples/tinygltf-nofs

建置

targets
tinygltf (lib)
language
c++23
C standard
c11
import std
no
include dirs
*

功能

功能宣告了
defaultimplies
fsdefines

原始檔 (1)

  • */tiny_gltf_v3.c

版本

版本平台 鏡像sha256
3.1.0 最新 LinuxWindowsmacOS CN GLOBAL 6e3043d1353d…
3.0.1 LinuxWindowsmacOS 來源 b7e953f13a30…