Exemplo n.º 1
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;
}
Exemplo n.º 2
0
	virtual LWError	Save (const lwpp::SaveState &ss)
	{
		LWError err = 0;
		ss.WriteBlock(idcomp[0], (int)Mode);
		ss.WriteItem(idcomp[1], *Opacity);
		return 0;
	}