本文整理汇总了C++中hkArray::back方法的典型用法代码示例。如果您正苦于以下问题:C++ hkArray::back方法的具体用法?C++ hkArray::back怎么用?C++ hkArray::back使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类hkArray
的用法示例。
在下文中一共展示了hkArray::back方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: setSpecificProperty
void hkvTextureAsset::setSpecificProperty(const hkvProperty& prop, const hkArray<hkStringPtr>& path, unsigned int stackIndex, hkvProperty::Purpose purpose)
{
int stackSize = (path.getSize() - stackIndex);
if ((stackSize == 1) && (hkvStringHelper::safeCompare(path.back(), "Texture") == 0))
{
m_imageProperties.setProperty(prop, path, stackIndex + 1, purpose);
// Usage is still present here for backwards compatibility to convert older asset libraries, but has now moved to the texture transform rule instead.
if (hkvStringHelper::safeCompare(prop.getName(), "Usage") == 0)
{
if (purpose == hkvProperty::PURPOSE_SERIALIZATION)
{
if (m_usageInstance.setByString(prop.getString()) != HK_SUCCESS)
{
m_usageInstance.setByAvailableElementsId(0);
}
}
}
else if (hkvStringHelper::safeCompare(prop.getName(), "sRGB") == 0)
{
m_sRgb = prop.getBool();
}
}
}
示例2: setSpecificProperty
void hkvTextureAsset::setSpecificProperty(const hkvProperty& prop, const hkArray<hkStringPtr>& path, unsigned int stackIndex, hkvProperty::Purpose purpose)
{
int stackSize = (path.getSize() - stackIndex);
if ((stackSize == 1) && (hkvStringHelper::safeCompare(path.back(), "Texture") == 0))
{
m_imageProperties.setProperty(prop, path, stackIndex + 1, purpose);
if (hkvStringHelper::safeCompare(prop.getName(), "Usage") == 0)
{
if (purpose == hkvProperty::PURPOSE_SERIALIZATION)
{
if (m_usageInstance.setByString(prop.getString()) != HK_SUCCESS)
{
m_usageInstance.setByAvailableElementsId(0);
}
}
else
{
m_usageInstance.setByAvailableElementsId(prop.getEnumValue());
}
}
else if (hkvStringHelper::safeCompare(prop.getName(), "sRGB") == 0)
{
m_sRgb = prop.getBool();
}
}
}
示例3: setSpecificProperty
void hkvStaticMeshAsset::setSpecificProperty(const hkvProperty& prop, const hkArray<hkStringPtr>& path, unsigned int stackIndex, hkvProperty::Purpose purpose)
{
int stackSize = (path.getSize() - stackIndex);
if ((stackSize == 1) && (hkvStringHelper::safeCompare(path.back(), "Model") == 0))
{
if (hkvStringHelper::safeCompare(prop.getName(), "LODSwitchDistances") == 0)
{
m_lodDistances = prop.getArray();
}
}
}