Esempio n. 1
0
 /// <summary>
 /// Deserializes this Light.
 /// </summary>
 /// <param name="input">Input to read from</param>
 public virtual void Read(ISavableReader input)
 {
     _name      = input.ReadString();
     _ambient   = input.ReadColor();
     _diffuse   = input.ReadColor();
     _specular  = input.ReadColor();
     _constant  = input.ReadSingle();
     _linear    = input.ReadSingle();
     _quadratic = input.ReadSingle();
     _attenuate = input.ReadBoolean();
     _enabled   = input.ReadBoolean();
 }
Esempio n. 2
0
 /// <summary>
 /// Deserializes the object and populates it from the input.
 /// </summary>
 /// <param name="input">Savable input</param>
 public override void Read(ISavableReader input)
 {
     base.Read(input);
     m_genMipMaps       = input.ReadBoolean();
     m_genMipMaps       = input.ReadBoolean();
     m_resizePowerOfTwo = input.ReadBoolean();
     m_textureFormat    = input.ReadEnum <TextureConversionFormat>();
     m_colorKey         = input.ReadColor();
     m_colorKeyEnabled  = input.ReadBoolean();
     m_preMultiplyAlpha = input.ReadBoolean();
 }