Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:04:42

0001 // Author: Kirill Gavrilov
0002 // Copyright (c) 2016-2019 OPEN CASCADE SAS
0003 //
0004 // This file is part of Open CASCADE Technology software library.
0005 //
0006 // This library is free software; you can redistribute it and/or modify it under
0007 // the terms of the GNU Lesser General Public License version 2.1 as published
0008 // by the Free Software Foundation, with special exception defined in the file
0009 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0010 // distribution for complete text of the license and disclaimer of any warranty.
0011 //
0012 // Alternatively, this file may be used under the terms of Open CASCADE
0013 // commercial license or contractual agreement.
0014 
0015 #ifndef _RWGltf_GltfAccessor_HeaderFile
0016 #define _RWGltf_GltfAccessor_HeaderFile
0017 
0018 #include <Graphic3d_BndBox3d.hxx>
0019 #include <RWGltf_GltfAccessorCompType.hxx>
0020 #include <RWGltf_GltfAccessorLayout.hxx>
0021 #include <Standard_TypeDef.hxx>
0022 
0023 //! Low-level glTF data structure defining Accessor.
0024 struct RWGltf_GltfAccessor
0025 {
0026   static const int INVALID_ID = -1;
0027 public:
0028 
0029   int                         Id;            //!< identifier
0030   int64_t                     ByteOffset;    //!< byte offset
0031   int64_t                     Count;         //!< size
0032   int32_t                     ByteStride;    //!< [0, 255] for glTF 1.0
0033   RWGltf_GltfAccessorLayout   Type;          //!< layout type
0034   RWGltf_GltfAccessorCompType ComponentType; //!< component type
0035   Graphic3d_BndBox3d          BndBox;        //!< bounding box
0036   bool                        IsCompressed;  //!< flag indicating KHR_draco_mesh_compression
0037 
0038   //! Empty constructor.
0039   RWGltf_GltfAccessor()
0040   : Id (INVALID_ID),
0041     ByteOffset (0),
0042     Count (0),
0043     ByteStride (0),
0044     Type (RWGltf_GltfAccessorLayout_UNKNOWN),
0045     ComponentType (RWGltf_GltfAccessorCompType_UNKNOWN),
0046     IsCompressed (false) {}
0047 
0048 };
0049 
0050 #endif // _RWGltf_GltfAccessor_HeaderFile