LoginSignup
0
0

More than 1 year has passed since last update.

tinygltf入門

Last updated at Posted at 2022-07-29

tinygltf入門

環境構築(tinygltfのReadmeに記載あり。)

  1. tinygltfをクローンしてくる。
  2. 使いたいプロジェクトで、以下の4つの.hが使えるようにする(includeパスを通す、同階層に置くなど)
  • stb_image.h
  • stb_image_write.h
  • json.hpp
  • tiny_gltf.h

使うとき

基本的には、tiny_gltf.hをインクルードするだけ。

#include "tiny_gltf.h"

ただ、以下の#defineは必要そうなので、どこかで書いておく。

#define TINYGLTF_IMPLEMENTATION
#define STB_IMAGE_IMPLEMENTATION
#define STB_IMAGE_WRITE_IMPLEMENTATION
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0