CesiumGS / cesium-native

Apache License 2.0
414 stars 210 forks source link

Add method to convert integer `AccessorSpec::ComponentType` to `PropertyComponentType` #921

Closed j9liu closed 1 month ago

j9liu commented 2 months ago

This is useful for creating class definitions for PropertyAttribute from glTF accessors.

ClassProperty uses strings to convey component type, but AccessorSpec::ComponentType is an integer. But you can use the new method with convertPropertyComponentTypeToString to get the corresponding component type string.