mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-19 08:11:33 +00:00
Remove last remnants of deprecated NIFStream methods
This commit is contained in:
parent
c551f23667
commit
defe5ba5e7
2 changed files with 9 additions and 19 deletions
|
@ -26,27 +26,27 @@ namespace Nif
|
||||||
{
|
{
|
||||||
NiDynamicEffect::read(nif);
|
NiDynamicEffect::read(nif);
|
||||||
|
|
||||||
mDimmer = nif->getFloat();
|
nif->read(mDimmer);
|
||||||
mAmbient = nif->getVector3();
|
nif->read(mAmbient);
|
||||||
mDiffuse = nif->getVector3();
|
nif->read(mDiffuse);
|
||||||
mSpecular = nif->getVector3();
|
nif->read(mSpecular);
|
||||||
}
|
}
|
||||||
|
|
||||||
void NiPointLight::read(NIFStream* nif)
|
void NiPointLight::read(NIFStream* nif)
|
||||||
{
|
{
|
||||||
NiLight::read(nif);
|
NiLight::read(nif);
|
||||||
|
|
||||||
mConstantAttenuation = nif->getFloat();
|
nif->read(mConstantAttenuation);
|
||||||
mLinearAttenuation = nif->getFloat();
|
nif->read(mLinearAttenuation);
|
||||||
mQuadraticAttenuation = nif->getFloat();
|
nif->read(mQuadraticAttenuation);
|
||||||
}
|
}
|
||||||
|
|
||||||
void NiSpotLight::read(NIFStream* nif)
|
void NiSpotLight::read(NIFStream* nif)
|
||||||
{
|
{
|
||||||
NiPointLight::read(nif);
|
NiPointLight::read(nif);
|
||||||
|
|
||||||
mCutoff = nif->getFloat();
|
nif->read(mCutoff);
|
||||||
mExponent = nif->getFloat();
|
nif->read(mExponent);
|
||||||
}
|
}
|
||||||
|
|
||||||
void NiTextureEffect::read(NIFStream* nif)
|
void NiTextureEffect::read(NIFStream* nif)
|
||||||
|
|
|
@ -146,16 +146,6 @@ namespace Nif
|
||||||
|
|
||||||
/// Read a sequence of null-terminated strings
|
/// Read a sequence of null-terminated strings
|
||||||
std::string getStringPalette();
|
std::string getStringPalette();
|
||||||
|
|
||||||
/// DEPRECATED: Use read() or get()
|
|
||||||
char getChar() { return get<char>(); }
|
|
||||||
unsigned short getUShort() { return get<unsigned short>(); }
|
|
||||||
int getInt() { return get<int>(); }
|
|
||||||
unsigned int getUInt() { return get<unsigned int>(); }
|
|
||||||
float getFloat() { return get<float>(); }
|
|
||||||
osg::Vec2f getVector2() { return get<osg::Vec2f>(); }
|
|
||||||
osg::Vec3f getVector3() { return get<osg::Vec3f>(); }
|
|
||||||
osg::Vec4f getVector4() { return get<osg::Vec4f>(); }
|
|
||||||
};
|
};
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
|
|
Loading…
Reference in a new issue