mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-28 17:09:41 +00:00
Implement NifOsg::Fog::compare()
This commit is contained in:
parent
a513049129
commit
745be2e91b
1 changed files with 15 additions and 0 deletions
|
@ -15,6 +15,21 @@ namespace NifOsg
|
||||||
|
|
||||||
META_StateAttribute(NifOsg, Fog, FOG)
|
META_StateAttribute(NifOsg, Fog, FOG)
|
||||||
|
|
||||||
|
int compare(const StateAttribute& sa) const override
|
||||||
|
{
|
||||||
|
COMPARE_StateAttribute_Types(Fog, sa);
|
||||||
|
|
||||||
|
COMPARE_StateAttribute_Parameter(_mode);
|
||||||
|
COMPARE_StateAttribute_Parameter(_density);
|
||||||
|
// _start and _end are intentionally ignored as they go unused
|
||||||
|
COMPARE_StateAttribute_Parameter(_color);
|
||||||
|
COMPARE_StateAttribute_Parameter(_fogCoordinateSource);
|
||||||
|
COMPARE_StateAttribute_Parameter(_useRadialFog);
|
||||||
|
COMPARE_StateAttribute_Parameter(mDepth);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
void setDepth(float depth) { mDepth = depth; }
|
void setDepth(float depth) { mDepth = depth; }
|
||||||
float getDepth() const { return mDepth; }
|
float getDepth() const { return mDepth; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue