};
-const std::string QUAD_STRING("quad");
+const std::string QUAD("quad");
///@brief Reads a blob from the given stream @a source into @a target, which must have
/// at least @a descriptor.length bytes.
{
DALI_ASSERT_DEBUG(0u != totalTextureSize && "totalTextureSize is zero.")
- // Calculate the dimensions of the texture.
- // The total size of the texture is the length of the blend shapes blob.
+ // Calculate the dimensions of the texture.
+ // The total size of the texture is the length of the blend shapes blob.
- textureWidth = 0u;
+ textureWidth = 0u;
textureHeight = 0u;
if (0u == totalTextureSize)
}
MeshDefinition::SparseBlob::SparseBlob(const Blob& indices, const Blob& values, uint32_t count)
-: mIndices{indices},
+: mIndices{indices},
mValues{values},
mCount{count}
{}
MeshDefinition::Accessor::Accessor(const MeshDefinition::Blob& blob,
const MeshDefinition::SparseBlob& sparse)
-: mBlob{blob},
+: mBlob{blob},
mSparse{(sparse.mIndices.IsDefined() && sparse.mValues.IsDefined()) ? new SparseBlob{sparse} : nullptr}
{}
}
}
+MeshDefinition::Blob::Blob(uint32_t offset, uint32_t length, uint16_t stride, uint16_t elementSizeHint, const std::vector<float>& min, const std::vector<float>& max)
+: mOffset(offset),
+ mLength(length),
+ mStride(stride),
+ mElementSizeHint(elementSizeHint),
+ mMin(min),
+ mMax(max)
+{}
+
uint32_t MeshDefinition::Blob::GetBufferSize() const
{
return IsConsecutive() ? mLength : (mLength * mElementSizeHint / mStride);
bool MeshDefinition::IsQuad() const
{
- return CaseInsensitiveStringCompare("quad", mUri);
+ return CaseInsensitiveStringCompare(QUAD, mUri);
}
bool MeshDefinition::IsSkinned() const