Example #1
0
	virtual LWError	Save (const lwpp::SaveState &ss)
	{
		LWError err = 0;
		ss.WriteBlock(idcomp[0], (int)Mode);
		ss.WriteItem(idcomp[1], *Opacity);
		return 0;
	}
Example #2
0
LWError	MaterialMixer::Save (const lwpp::SaveState &ss)
{
	LWError err = 0;
	ss.WriteItem(idroot[0], Diffuse);
	ss.WriteItem(idroot[1], Specular);
	ss.WriteItem(idroot[2], Reflection);
	ss.WriteItem(idroot[3], Refraction);
	ss.WriteItem(idroot[4], Transparency);
	return 0;
}
Example #3
0
/* ======================================================================
SaveSettings()
====================================================================== */
LWError hotdm::SaveSettings(const lwpp::SaveState &ss, bool is_preset)
{
	ss.WriteBlock(idroot[0], resolution);
	ss.WriteItem(idroot[1], *globalScale);
	
	ss.WriteItem(idroot[2], *waveHeight);
	ss.WriteItem(idroot[3], *shortestWave);
	ss.WriteBlock(idroot[4], doChop);
	ss.WriteItem(idroot[5], *choppiness);

	ss.WriteItem(idroot[6], *windSpeed);
	ss.WriteItem(idroot[7], *windDirection);
	ss.WriteItem(idroot[8], *windAlign);


	ss.WriteItem(idroot[9], *dampReflections);
	ss.WriteItem(idroot[10], *oceanDepth);

	ss.WriteBlock(idroot[11], seed);

	ss.WriteBlock(idroot[12], interpolation);

	/* This DOESNT work for displacement plugins, But left the code to see how other controls can be done */
	/*ss.WriteBlock(idroot[13], normals);
	ss.WriteBlock(idroot[14], jacobian);*/

	return NULL;
}