Removed isActive from component
This commit is contained in:
parent
baa77e5d37
commit
f110f9b16b
|
@ -10,7 +10,7 @@ namespace SHADE
|
|||
lightData.Reset();
|
||||
SetType(SH_LIGHT_TYPE::DIRECTIONAL);
|
||||
indexInBuffer = std::numeric_limits<uint32_t>::max();
|
||||
lightData.active = true;
|
||||
isActive = true;
|
||||
Unbind();
|
||||
}
|
||||
|
||||
|
@ -98,12 +98,6 @@ namespace SHADE
|
|||
indexInBuffer = inIndexInBuffer;
|
||||
}
|
||||
|
||||
void SHLightComponent::SetActive(bool flag) noexcept
|
||||
{
|
||||
MakeDirty();
|
||||
lightData.active = flag;
|
||||
|
||||
}
|
||||
|
||||
void SHLightComponent::SetStrength(float value) noexcept
|
||||
{
|
||||
|
@ -152,11 +146,6 @@ namespace SHADE
|
|||
return bound;
|
||||
}
|
||||
|
||||
bool SHLightComponent::GetActive(void) const noexcept
|
||||
{
|
||||
return lightData.active;
|
||||
}
|
||||
|
||||
uint32_t SHLightComponent::GetIndexInBuffer(void) const noexcept
|
||||
{
|
||||
return indexInBuffer;
|
||||
|
|
|
@ -47,7 +47,6 @@ namespace SHADE
|
|||
void ClearDirtyFlag (void) noexcept;
|
||||
void Unbind (void) noexcept;
|
||||
void SetBound (uint32_t inIndexInBuffer) noexcept;
|
||||
void SetActive (bool flag) noexcept; // serialized
|
||||
void SetStrength (float value) noexcept; // serialized
|
||||
|
||||
|
||||
|
@ -59,7 +58,6 @@ namespace SHADE
|
|||
uint32_t const& GetCullingMask (void) const noexcept; // serialized
|
||||
bool IsDirty (void) const noexcept;
|
||||
bool GetBound (void) const noexcept;
|
||||
bool GetActive (void) const noexcept; // serialized
|
||||
uint32_t GetIndexInBuffer (void) const noexcept;
|
||||
|
||||
};
|
||||
|
|
|
@ -46,8 +46,6 @@ namespace SHADE
|
|||
//! Strength of the light
|
||||
float strength;
|
||||
|
||||
//! If the light is active, this is true.
|
||||
bool active;
|
||||
|
||||
void Reset (void) noexcept;
|
||||
//! TODO:
|
||||
|
|
|
@ -43,7 +43,7 @@ namespace SHADE
|
|||
lightPtr->cullingMask = lightData.cullingMask;
|
||||
lightPtr->direction = lightData.direction;
|
||||
lightPtr->diffuseColor = lightData.color;
|
||||
lightPtr->active = lightComp->GetActive();
|
||||
lightPtr->active = lightComp->isActive;
|
||||
break;
|
||||
}
|
||||
case SH_LIGHT_TYPE::POINT:
|
||||
|
@ -56,7 +56,7 @@ namespace SHADE
|
|||
lightPtr->ambientColor = lightData.color;
|
||||
lightPtr->strength = lightData.strength;
|
||||
lightPtr->cullingMask = lightData.cullingMask;
|
||||
lightPtr->active = lightComp->GetActive ();
|
||||
lightPtr->active = lightComp->isActive;
|
||||
break;
|
||||
}
|
||||
case SH_LIGHT_TYPE::NUM_TYPES:
|
||||
|
|
Loading…
Reference in New Issue