gg_gltf 0.0.1 copy "gg_gltf: ^0.0.1" to clipboard
gg_gltf: ^0.0.1 copied to clipboard

gg_gltf a library for parsing and generating gltf 3D graphic files

example/gg_gltf_example.dart

// @license
// Copyright (c) 2019 - 2024 Dr. Gabriel Gatzsche. All Rights Reserved.
//
// Use of this source code is governed by terms that can be
// found in the LICENSE file in the root of this package.

import 'dart:convert';

import 'package:gg_gltf/gg_gltf.dart';

void main() {
  final gltf = Gltf.example;
  final json = jsonEncode(gltf.toJson());
  final gltf2 = Gltf.fromJson(jsonDecode(json) as Map<String, dynamic>);
  assert(gltf == gltf2);
}
0
likes
160
points
22
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

gg_gltf a library for parsing and generating gltf 3D graphic files

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

collection, json_annotation, path

More

Packages that depend on gg_gltf