3#include <glm/common.hpp>
Classes for working with glTF models.
PropertyComponentType
The possible types of a property component.
@ Float32
A property component equivalent to a float.
@ Uint32
A property component equivalent to a uint32_t.
@ Uint16
A property component equivalent to a uint16_t.
@ Int16
A property component equivalent to an int16_t.
@ Uint8
A property component equivalent to a uint8_t.
@ Int8
A property component equivalent to an int8_t.
@ Int32
A property component equivalent to an int32_t.
@ Uint64
A property component equivalent to a uint32_t.
@ Float64
A property component equivalent to a double.
@ Int64
A property component equivalent to an int64_t.
size_t getSizeOfComponentType(PropertyComponentType componentType)
Obtains the size in bytes of a value of this PropertyComponentType.
PropertyComponentType convertArrayOffsetTypeStringToPropertyComponentType(const std::string &str)
Converts a string listed in PropertyTableProperty::ArrayOffsetType to its corresponding PropertyCompo...
bool isPropertyTypeVecN(PropertyType type)
Checks if the given PropertyType represents a vector with any number of components.
bool isPropertyComponentTypeInteger(PropertyComponentType componentType)
Checks if the given PropertyComponentType represents an integer value.
PropertyComponentType convertStringToPropertyComponentType(const std::string &str)
Converts a string into a PropertyComponentType.
bool isPropertyTypeMatN(PropertyType type)
Checks if the given PropertyType represents a matrix with any number of components.
std::string convertPropertyTypeToString(PropertyType type)
Converts a PropertyType value to a string.
std::string convertPropertyComponentTypeToString(PropertyComponentType componentType)
Converts a PropertyComponentType value to a string.
PropertyType convertStringToPropertyType(const std::string &str)
Converts a string into a PropertyType.
PropertyType
The possible types of a property in a PropertyTableView.
@ Vec3
A vector with three components.
@ Invalid
An invalid property type.
@ Scalar
A scalar property, i.e. an integer or floating point value.
@ Vec4
A vector with four components.
@ Vec2
A vector with two components.
PropertyComponentType convertAccessorComponentTypeToPropertyComponentType(int componentType)
Converts a integer type ID listed in AccessorSpec::ComponentType to its corresponding PropertyCompone...
glm::length_t getDimensionsFromPropertyType(PropertyType type)
Obtains the number of dimensions in the given PropertyType.
glm::length_t getComponentCountFromPropertyType(PropertyType type)
Obtains the number of components in the given PropertyType.
PropertyComponentType convertStringOffsetTypeStringToPropertyComponentType(const std::string &str)
Converts a string listed in PropertyTableProperty::StringOffsetType to its corresponding PropertyComp...
An object defining the values of an enum.