mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-11 14:00:32 +08:00
27 lines
508 B
C++
27 lines
508 B
C++
#include "Light.h"
|
|
|
|
namespace HWP { namespace CHART
|
|
{
|
|
CLightSource::CLightSource()
|
|
{
|
|
|
|
}
|
|
|
|
bool CLightSource::Read(CHWPStream& oStream)
|
|
{
|
|
return oStream.ReadShort(m_snX) && oStream.ReadShort(m_snY) &&
|
|
oStream.ReadShort(m_snZ) && oStream.ReadShort(m_snIntensity);
|
|
}
|
|
|
|
CLight::CLight()
|
|
{
|
|
|
|
}
|
|
|
|
bool CLight::Read(CHWPStream& oStream)
|
|
{
|
|
return oStream.ReadShort(m_snAmbientIntensity) && oStream.ReadShort(m_snEdgeIntensity) &&
|
|
oStream.ReadBool(m_bEdgeVisible) && m_oLightSources.Read(oStream);
|
|
}
|
|
}}
|