GithubHelp home page GithubHelp logo

cauchy-99 / easygltf Goto Github PK

View Code? Open in Web Editor NEW

This project forked from livvv2k/easygltf

0.0 0.0 0.0 899 KB

C++11 library for loading and parsing glTF assets.

License: GNU General Public License v3.0

C++ 94.58% CMake 5.42%

easygltf's Introduction

EasyGLTF

Build Status

C++11 library for loading and parsing glTF assets.

Dependencies

The only dependencies used are header only libraries, rapidjson and a header for decoding Base64 strings, that need not be present unless you are building the library.

Building

Linux

mkdir out && cd out/
cmake ../
make

Windows

If you have cmake tools installed with Visual Studio (You can use the installer to get it, Tools->Get Tools and Features), you can just open the folder with Visual Studio and carry on as if it were a sln file. You could also use cmake to generate an sln file.

After building, copy out the include and lib folder in output/ which would have the needed header and static library file.

Usage

The interface supports loading GLTF and GLB files from either memory or file path.

EGLTF::CEasyGLTF* easygltf = new EGLTF::CEasyGLTF();
if (!easygltf->LoadGLB_file("Monster/glTF-Binary/Monster.glb"))
{
  return false;
}

// The SGLTFAsset is a higher level representation of a gltf asset from the loaded file(s).
// All the information of the loaded asset can be accessed from this struct.
EGLTF::SGLTFAsset asset = easyglt->GetAssetInstance(); // returns a const reference

easygltf's People

Contributors

livvv2k avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.