version in glb header is stored as uint32_t

Validator complains about `1` not being a valid version, however.
pull/1378/head
Daniel Hritzkiv 2017-08-09 11:07:08 -04:00
parent 7a4a32625c
commit 83bfa61f8d
No known key found for this signature in database
GPG Key ID: D1D19875679D5CBF
2 changed files with 2 additions and 2 deletions

View File

@ -177,7 +177,7 @@ namespace glTF2
struct GLB_Header struct GLB_Header
{ {
uint8_t magic[4]; //!< Magic number: "glTF" uint8_t magic[4]; //!< Magic number: "glTF"
float_t version; //!< Version number uint32_t version; //!< Version number
uint32_t length; //!< Total length of the Binary glTF, including header, scene, and body, in bytes uint32_t length; //!< Total length of the Binary glTF, including header, scene, and body, in bytes
uint32_t sceneLength; //!< Length, in bytes, of the glTF scene uint32_t sceneLength; //!< Length, in bytes, of the glTF scene
uint32_t sceneFormat; //!< Specifies the format of the glTF scene (see the SceneFormat enum) uint32_t sceneFormat; //!< Specifies the format of the glTF scene (see the SceneFormat enum)

View File

@ -177,7 +177,7 @@ namespace glTF
struct GLB_Header struct GLB_Header
{ {
uint8_t magic[4]; //!< Magic number: "glTF" uint8_t magic[4]; //!< Magic number: "glTF"
float_t version; //!< Version number (always 1 as of the last update) uint32_t version; //!< Version number (always 1 as of the last update)
uint32_t length; //!< Total length of the Binary glTF, including header, scene, and body, in bytes uint32_t length; //!< Total length of the Binary glTF, including header, scene, and body, in bytes
uint32_t sceneLength; //!< Length, in bytes, of the glTF scene uint32_t sceneLength; //!< Length, in bytes, of the glTF scene
uint32_t sceneFormat; //!< Specifies the format of the glTF scene (see the SceneFormat enum) uint32_t sceneFormat; //!< Specifies the format of the glTF scene (see the SceneFormat enum)