@ -149,21 +149,23 @@ enum class MeshAttribute: UnsignedShort {
/**
/**
* Weights . Type is usually @ ref VertexFormat : : Vector4 , but can be also
* Weights . Type is usually @ ref VertexFormat : : Vector4 , but can be also
* @ ref VertexFormat : : Vector4h , @ ref VertexFormat : : Vector4bNormalized or
* @ ref VertexFormat : : Vector4h , @ ref VertexFormat : : Vector4ub ,
* @ ref VertexFormat : : Vector4sNormalized . Corresponds to
* @ ref VertexFormat : : Vector4b , @ ref VertexFormat : : Vector4us ,
* @ ref Shaders : : Generic : : Weights .
* @ ref VertexFormat : : Vector4s , @ ref VertexFormat : : Vector4ubNormalized ,
* @ ref VertexFormat : : Vector4bNormalized , @ ref VertexFormat : : Vector4usNormalized
* or @ ref VertexFormat : : Vector4sNormalized .
* Corresponds to * @ ref Shaders : : Generic : : Weights .
* @ see @ ref MeshData : : weightsAsArray ( )
* @ see @ ref MeshData : : weightsAsArray ( )
*/
*/
Weights ,
Weights ,
/**
/**
* JointIndices . Type is usually @ ref VertexFormat : : Vector4ui , but can be also
* Joint IDs . Type is usually @ ref VertexFormat : : Vector4ui , but can be also
* @ ref VertexFormat : : Vector4i , @ ref VertexFormat : : Vector4s , @ ref VertexFormat : : Vector4us ,
* @ ref VertexFormat : : Vector4us or @ ref VertexFormat : : Vector4ub .
* @ ref VertexFormat : : Vector4ub or @ ref VertexFormat : : Vector4b . Corresponds to
* @ ref Shaders : : Generic : : JointIds .
* @ ref Shaders : : Generic : : JointIndices .
* @ see @ ref MeshData : : jointIdsAsArray ( )
* @ see @ ref MeshData : : jointIndicesAsArray ( )
*/
*/
JointIn dice s ,
JointIds ,
/**
/**
* This and all higher values are for importer - specific attributes . Can be
* This and all higher values are for importer - specific attributes . Can be
@ -632,7 +634,7 @@ The simplest usage is through the convenience functions @ref positions2DAsArray(
@ ref positions3DAsArray ( ) , @ ref tangentsAsArray ( ) , @ ref bitangentsAsArray ( ) ,
@ ref positions3DAsArray ( ) , @ ref tangentsAsArray ( ) , @ ref bitangentsAsArray ( ) ,
@ ref normalsAsArray ( ) , @ ref tangentsAsArray ( ) , @ ref textureCoordinates2DAsArray ( ) ,
@ ref normalsAsArray ( ) , @ ref tangentsAsArray ( ) , @ ref textureCoordinates2DAsArray ( ) ,
@ ref colorsAsArray ( ) , @ ref objectIdsAsArray ( ) , @ ref weightsAsArray ( ) and
@ ref colorsAsArray ( ) , @ ref objectIdsAsArray ( ) , @ ref weightsAsArray ( ) and
@ ref jointIn dice sAsArray ( ) . Each of these takes an index ( as there can be multiple
@ ref jointIdsAsArray ( ) . Each of these takes an index ( as there can be multiple
sets of texture coordinates , for example ) and you ' re expected to check for
sets of texture coordinates , for example ) and you ' re expected to check for
attribute presence first with either @ ref hasAttribute ( ) or
attribute presence first with either @ ref hasAttribute ( ) or
@ ref attributeCount ( MeshAttribute ) const :
@ ref attributeCount ( MeshAttribute ) const :
@ -1761,28 +1763,28 @@ class MAGNUM_TRADE_EXPORT MeshData {
void weightsInto ( Containers : : StridedArrayView1D < Vector4 > destination , UnsignedInt id = 0 ) const ;
void weightsInto ( Containers : : StridedArrayView1D < Vector4 > destination , UnsignedInt id = 0 ) const ;
/**
/**
* @ brief Weight s as 4 D unsigned shor t vectors
* @ brief Joint ID s as 4 D unsigned in t vectors
*
*
* Convenience alternative to @ ref attribute ( MeshAttribute , UnsignedInt ) const
* Convenience alternative to @ ref attribute ( MeshAttribute , UnsignedInt ) const
* with @ ref MeshAttribute : : JointIn dice s as the first argument . Converts
* with @ ref MeshAttribute : : JointIds as the first argument . Converts
* the joint indices array from an arbitrary underlying type and returns it
* the joint indices array from an arbitrary underlying type and returns it
* in a newly - allocated array . Expects that the vertex format is * not *
* in a newly - allocated array . Expects that the vertex format is * not *
* implementation - specific , in that case you can only access the
* implementation - specific , in that case you can only access the
* attribute via the typeless @ ref attribute ( MeshAttribute , UnsignedInt ) const .
* attribute via the typeless @ ref attribute ( MeshAttribute , UnsignedInt ) const .
* @ see @ ref jointIn dice sInto ( ) , @ ref attributeFormat ( ) ,
* @ see @ ref jointIdsInto ( ) , @ ref attributeFormat ( ) ,
* @ ref isVertexFormatImplementationSpecific ( )
* @ ref isVertexFormatImplementationSpecific ( )
*/
*/
Containers : : Array < Vector4us > jointIn dice sAsArray ( UnsignedInt id = 0 ) const ;
Containers : : Array < Vector4ui > jointIdsAsArray ( UnsignedInt id = 0 ) const ;
/**
/**
* @ brief Weight s as 4 D unsigned shor t vectors into a pre - allocated view
* @ brief Joint ID s as 4 D unsigned in t vectors into a pre - allocated view
*
*
* Like @ ref jointIn dice sAsArray ( ) , but puts the result into
* Like @ ref jointIdsAsArray ( ) , but puts the result into
* @ p destination instead of allocating a new array . Expects that
* @ p destination instead of allocating a new array . Expects that
* @ p destination is sized to contain exactly all data .
* @ p destination is sized to contain exactly all data .
* @ see @ ref vertexCount ( )
* @ see @ ref vertexCount ( )
*/
*/
void jointIn dice sInto ( Containers : : StridedArrayView1D < Vector4us > destination , UnsignedInt id = 0 ) const ;
void jointIdsInto ( Containers : : StridedArrayView1D < Vector4ui > destination , UnsignedInt id = 0 ) const ;
/**
/**
* @ brief Release index data storage
* @ brief Release index data storage