0031312: Data Exchange - RWGltf_CafReader fails reading texture embedded into base64...
[occt.git] / src / RWGltf / RWGltf_GltfPrimArrayData.hxx
1 // Author: Kirill Gavrilov
2 // Copyright (c) 2018-2019 OPEN CASCADE SAS
3 //
4 // This file is part of Open CASCADE Technology software library.
5 //
6 // This library is free software; you can redistribute it and/or modify it under
7 // the terms of the GNU Lesser General Public License version 2.1 as published
8 // by the Free Software Foundation, with special exception defined in the file
9 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
10 // distribution for complete text of the license and disclaimer of any warranty.
11 //
12 // Alternatively, this file may be used under the terms of Open CASCADE
13 // commercial license or contractual agreement.
14
15 #ifndef _RWGltf_GltfPrimArrayData_HeaderFile
16 #define _RWGltf_GltfPrimArrayData_HeaderFile
17
18 #include <NCollection_Buffer.hxx>
19 #include <RWGltf_GltfAccessor.hxx>
20 #include <RWGltf_GltfArrayType.hxx>
21 #include <TCollection_AsciiString.hxx>
22
23 //! An element within primitive array - vertex attribute or element indexes.
24 class RWGltf_GltfPrimArrayData
25 {
26 public:
27   Handle(NCollection_Buffer) StreamData;
28   TCollection_AsciiString    StreamUri;
29   int64_t                    StreamOffset;
30
31   RWGltf_GltfAccessor        Accessor;
32   RWGltf_GltfArrayType       Type;
33
34   RWGltf_GltfPrimArrayData()
35   : StreamOffset (0), Type (RWGltf_GltfArrayType_UNKNOWN) {}
36
37   RWGltf_GltfPrimArrayData (RWGltf_GltfArrayType theType)
38   : StreamOffset (0), Type (theType) {}
39 };
40
41 #endif // _RWGltf_GltfPrimArrayData_HeaderFile