From 2d17a31d3bf507c1005af5cd26f39bde79f2dad3 Mon Sep 17 00:00:00 2001 From: Syoyo Fujita Date: Tue, 17 Apr 2018 15:45:42 +0900 Subject: [PATCH] `typedef struct` -> `struct` for enabling forward declarations of struct. --- tiny_gltf.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tiny_gltf.h b/tiny_gltf.h index 4f1e3db..523a367 100644 --- a/tiny_gltf.h +++ b/tiny_gltf.h @@ -401,12 +401,12 @@ struct AnimationSampler { AnimationSampler() : input(-1), output(-1), interpolation("LINEAR") {} }; -typedef struct { +struct Animation { std::string name; std::vector channels; std::vector samplers; Value extras; -} Animation; +}; struct Skin { std::string name; @@ -607,14 +607,14 @@ struct Primitive { } }; -typedef struct { +struct Mesh { std::string name; std::vector primitives; std::vector weights; // weights to be applied to the Morph Targets std::vector > targets; ExtensionMap extensions; Value extras; -} Mesh; +}; class Node { public: @@ -655,22 +655,22 @@ class Node { Value extras; }; -typedef struct { +struct Buffer { std::string name; std::vector data; std::string uri; // considered as required here but not in the spec (need to clarify) Value extras; -} Buffer; +}; -typedef struct { +struct Asset { std::string version; // required std::string generator; std::string minVersion; std::string copyright; ExtensionMap extensions; Value extras; -} Asset; +}; struct Scene { std::string name;