Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QSSGGltf::Accessor Struct Reference

#include <qssggltfdocument_p.h>

Collaboration diagram for QSSGGltf::Accessor:

Classes

struct  Sparse

Public Types

enum class  ComponentType {
  Byte = 5120 , UnsignedByte = 5121 , Short = 5122 , UnsignedShort = 5123 ,
  UnsignedInt = 5125 , Float = 5126
}
enum class  Type {
  Scalar , Vec2 , Vec3 , Vec4 ,
  Mat2 , Mat3 , Mat4
}

Public Member Functions

int elementByteSize () const

Static Public Member Functions

static int componentByteSize (ComponentType componentType)
static int componentCount (Type type)

Public Attributes

int bufferView = -1
qint64 byteOffset = 0
ComponentType componentType = ComponentType::Float
Type type = Type::Scalar
qint64 count = 0
bool normalized = false
QList< double > min
QList< double > max
std::optional< Sparsesparse
QString name

Detailed Description

Definition at line 70 of file qssggltfdocument_p.h.

Member Enumeration Documentation

◆ ComponentType

Enumerator
Byte 
UnsignedByte 
Short 
UnsignedShort 
UnsignedInt 
Float 

Definition at line 73 of file qssggltfdocument_p.h.

◆ Type

enum class QSSGGltf::Accessor::Type
strong
Enumerator
Scalar 
Vec2 
Vec3 
Vec4 
Mat2 
Mat3 
Mat4 

Definition at line 81 of file qssggltfdocument_p.h.

Member Function Documentation

◆ componentByteSize()

int QSSGGltf::Accessor::componentByteSize ( ComponentType componentType)
inlinestatic

Definition at line 112 of file qssggltfdocument_p.h.

References Byte, Float, Short, UnsignedByte, UnsignedInt, and UnsignedShort.

Referenced by elementByteSize().

Here is the caller graph for this function:

◆ componentCount()

int QSSGGltf::Accessor::componentCount ( Type type)
inlinestatic

Definition at line 128 of file qssggltfdocument_p.h.

References Mat2, Mat3, Mat4, Scalar, Vec2, Vec3, and Vec4.

Referenced by elementByteSize().

Here is the caller graph for this function:

◆ elementByteSize()

int QSSGGltf::Accessor::elementByteSize ( ) const
inline

Definition at line 142 of file qssggltfdocument_p.h.

References componentByteSize(), componentCount(), componentType, and type.

Here is the call graph for this function:

Member Data Documentation

◆ bufferView

int QSSGGltf::Accessor::bufferView = -1

Definition at line 101 of file qssggltfdocument_p.h.

◆ byteOffset

qint64 QSSGGltf::Accessor::byteOffset = 0

Definition at line 102 of file qssggltfdocument_p.h.

◆ componentType

ComponentType QSSGGltf::Accessor::componentType = ComponentType::Float

Definition at line 103 of file qssggltfdocument_p.h.

Referenced by elementByteSize().

◆ count

qint64 QSSGGltf::Accessor::count = 0

Definition at line 105 of file qssggltfdocument_p.h.

◆ max

QList<double> QSSGGltf::Accessor::max

Definition at line 108 of file qssggltfdocument_p.h.

◆ min

QList<double> QSSGGltf::Accessor::min

Definition at line 107 of file qssggltfdocument_p.h.

◆ name

QString QSSGGltf::Accessor::name

◆ normalized

bool QSSGGltf::Accessor::normalized = false

Definition at line 106 of file qssggltfdocument_p.h.

◆ sparse

std::optional<Sparse> QSSGGltf::Accessor::sparse

Definition at line 109 of file qssggltfdocument_p.h.

◆ type

Type QSSGGltf::Accessor::type = Type::Scalar

Definition at line 104 of file qssggltfdocument_p.h.

Referenced by elementByteSize().


The documentation for this struct was generated from the following file: