Matrix worldMatrix;
Vector3 localPosition;
+
// descentList is leaf first, so traverse from root (end) to leaf (beginning)
- for(unsigned int i(descentList.size() - 1); i < descentList.size(); --i)
+ const size_t descentCount = descentList.size();
+ for(size_t iter = 0u; iter < descentCount; ++iter)
{
+ auto i = descentCount - iter - 1u;
Vector3 anchorPoint = descentList[i].GetProperty<Vector3>(Dali::Actor::Property::ANCHOR_POINT);
Vector3 parentOrigin = descentList[i].GetProperty<Vector3>(Dali::Actor::Property::PARENT_ORIGIN);
bool positionUsesAnchorPoint = descentList[i].GetProperty<bool>(Dali::Actor::Property::POSITION_USES_ANCHOR_POINT);
currentActor = currentActor.GetParent();
} while(inheritance != Dali::ColorMode::USE_OWN_COLOR && currentActor);
- Vector4 worldColor;
- for(unsigned int i(descentList.size() - 1); i < descentList.size(); --i)
+ Vector4 worldColor;
+ const size_t descentCount = descentList.size();
+ for(size_t iter = 0u; iter < descentCount; ++iter)
{
+ auto i = descentCount - iter - 1u;
if(inheritanceModeList[i] == USE_OWN_COLOR || i == descentList.size() - 1)
{
worldColor = descentList[i].GetProperty<Vector4>(Dali::Actor::Property::COLOR);
/*
- * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
return Dali::Sampler(samplerPtr);
}
-size_t TextureSet::GetTextureCount() const
+uint32_t TextureSet::GetTextureCount() const
{
return GetImplementation(*this).GetTextureCount();
}
#define DALI_TEXTURE_SET_H
/*
- * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* @SINCE_1_1.43
* @return The number of textures in the TextureSet
*/
- size_t GetTextureCount() const;
+ uint32_t GetTextureCount() const;
public:
/**