replacing virtual function with default parameter with overloaded function
This commit is contained in:
+4
-2
@@ -88,8 +88,10 @@ namespace AZ
|
||||
|
||||
//! Sets the transform of the decal
|
||||
//! Equivalent to calling SetDecalPosition() + SetDecalOrientation() + SetDecalHalfSize()
|
||||
virtual void SetDecalTransform(DecalHandle handle, const AZ::Transform& world,
|
||||
const AZ::Vector3& nonUniformScale = AZ::Vector3::CreateOne()) = 0;
|
||||
//! @{
|
||||
virtual void SetDecalTransform(DecalHandle handle, const AZ::Transform& world) = 0;
|
||||
virtual void SetDecalTransform(DecalHandle handle, const AZ::Transform& world, const AZ::Vector3& nonUniformScale) = 0;
|
||||
//! @}
|
||||
|
||||
//! Sets the material information for this decal
|
||||
virtual void SetDecalMaterial(DecalHandle handle, const AZ::Data::AssetId) = 0;
|
||||
|
||||
@@ -262,6 +262,11 @@ namespace AZ
|
||||
}
|
||||
}
|
||||
|
||||
void DecalFeatureProcessor::SetDecalTransform(DecalHandle handle, const AZ::Transform& world)
|
||||
{
|
||||
SetDecalTransform(handle, world, AZ::Vector3::CreateOne());
|
||||
}
|
||||
|
||||
void DecalFeatureProcessor::SetDecalTransform(DecalHandle handle, const AZ::Transform& world, const AZ::Vector3& nonUniformScale)
|
||||
{
|
||||
// ATOM-4330
|
||||
|
||||
@@ -73,8 +73,10 @@ namespace AZ
|
||||
|
||||
//! Sets the transform of the decal
|
||||
//! Equivalent to calling SetDecalPosition() + SetDecalOrientation() + SetDecalHalfSize()
|
||||
void SetDecalTransform(DecalHandle handle, const AZ::Transform& world,
|
||||
const AZ::Vector3& nonUniformScale = AZ::Vector3::CreateOne()) override;
|
||||
//! @{
|
||||
void SetDecalTransform(DecalHandle handle, const AZ::Transform& world) override;
|
||||
void SetDecalTransform(DecalHandle handle, const AZ::Transform& world, const AZ::Vector3& nonUniformScale) override;
|
||||
//! @}
|
||||
|
||||
//! Sets the material information for this decal
|
||||
void SetDecalMaterial(DecalHandle handle, const AZ::Data::AssetId) override;
|
||||
|
||||
@@ -269,6 +269,11 @@ namespace AZ
|
||||
}
|
||||
}
|
||||
|
||||
void DecalTextureArrayFeatureProcessor::SetDecalTransform(DecalHandle handle, const AZ::Transform& world)
|
||||
{
|
||||
SetDecalTransform(handle, world, AZ::Vector3::CreateOne());
|
||||
}
|
||||
|
||||
void DecalTextureArrayFeatureProcessor::SetDecalTransform(DecalHandle handle, const AZ::Transform& world,
|
||||
const AZ::Vector3& nonUniformScale)
|
||||
{
|
||||
|
||||
@@ -82,8 +82,10 @@ namespace AZ
|
||||
|
||||
//! Sets the transform of the decal
|
||||
//! Equivalent to calling SetDecalPosition() + SetDecalOrientation() + SetDecalHalfSize()
|
||||
void SetDecalTransform(const DecalHandle handle, const AZ::Transform& world,
|
||||
const AZ::Vector3& nonUniformScale = AZ::Vector3::CreateOne()) override;
|
||||
//! @{
|
||||
void SetDecalTransform(const DecalHandle handle, const AZ::Transform& world) override;
|
||||
void SetDecalTransform(const DecalHandle handle, const AZ::Transform& world, const AZ::Vector3& nonUniformScale) override;
|
||||
//! @}
|
||||
|
||||
//! Sets the material information for this decal
|
||||
void SetDecalMaterial(const DecalHandle handle, const AZ::Data::AssetId id) override;
|
||||
|
||||
Reference in New Issue
Block a user