From Wojciech Lewandowski and Robert Osfield, Support from LightPointNode::s/getPointSprite parameter.

This commit is contained in:
Robert Osfield
2008-02-27 12:11:02 +00:00
parent a4a39d32ff
commit eb46608be4
3 changed files with 30 additions and 1 deletions

View File

@@ -34,6 +34,11 @@ void LightPointNode::write(DataOutputStream* out){
out->writeFloat(getMaxPixelSize());
out->writeFloat(getMaxVisibleDistance2());
if (out->getVersion() >= VERSION_0024)
{
out->writeBool(getPointSprite());
}
// Write out LightPoints.
unsigned int size = getNumLightPoints();
out->writeUInt(size);
@@ -60,6 +65,11 @@ void LightPointNode::read(DataInputStream* in){
setMaxPixelSize(in->readFloat());
setMaxVisibleDistance2(in->readFloat());
if (in->getVersion() >= VERSION_0024)
{
setPointSprite(in->readBool());
}
// Read in lightpoints.
unsigned int size = in->readUInt();
for(unsigned int i=0; i<size; i++ ){