/// <summary> /// Default constructor /// </summary> /// <param name="client">Reference to the SecondLife client</param> /// <param name="totalLayers">Total number of layers this layer set is /// composed of</param> /// <param name="paramValues">Appearance parameters the drive the /// baking process</param> /// <param name="width">Width of the final baked image</param> /// <param name="height">Height of the final baked image</param> public Baker(SecondLife client, AppearanceManager.BakeType bakeType, int textureCount, Dictionary<int, float> paramValues) { Client = client; BakeType = bakeType; TextureCount = textureCount; if (bakeType == AppearanceManager.BakeType.Eyes) { BakeWidth = 128; BakeHeight = 128; } else { BakeWidth = 512; BakeHeight = 512; } ParamValues = paramValues; if (textureCount == 0) Bake(); }
/// <summary> /// Default constructor /// </summary> /// <param name="client">Reference to the GridClient object</param> /// <param name="bakeType"></param> /// <param name="textureCount">Total number of layers this layer set is /// composed of</param> /// <param name="paramValues">Appearance parameters the drive the /// baking process</param> public Baker(LoggerInstance log, AppearanceManager.BakeType bakeType, int textureCount, Dictionary<int, float> paramValues) { _log = log; _bakeType = bakeType; _textureCount = textureCount; if (bakeType == AppearanceManager.BakeType.Eyes) { _bakeWidth = 128; _bakeHeight = 128; } else { _bakeWidth = 512; _bakeHeight = 512; } _paramValues = paramValues; if (textureCount == 0) Bake(); }
/// <summary> /// Default constructor /// </summary> /// <param name="client">Reference to the GridClient object</param> /// <param name="bakeType"></param> /// <param name="textureCount">Total number of layers this layer set is /// composed of</param> /// <param name="paramValues">Appearance parameters the drive the /// baking process</param> public Baker(GridClient client, AppearanceManager.BakeType bakeType, int textureCount, Dictionary<int, float> paramValues) { _client = client; _bakeType = bakeType; _textureCount = textureCount; if (bakeType == AppearanceManager.BakeType.Eyes) { _bakeWidth = 128; _bakeHeight = 128; } else { _bakeWidth = 512; _bakeHeight = 512; } _paramValues = paramValues; if (textureCount == 0) Bake(); }
/// <summary> /// Default constructor /// </summary> /// <param name="client">Reference to the GridClient object</param> /// <param name="bakeType"></param> /// <param name="textureCount">Total number of layers this layer set is /// composed of</param> /// <param name="paramValues">Appearance parameters the drive the /// baking process</param> public Baker(GridClient client, AppearanceManager.BakeType bakeType, int textureCount, Dictionary <int, float> paramValues) { _client = client; _bakeType = bakeType; _textureCount = textureCount; if (bakeType == AppearanceManager.BakeType.Eyes) { _bakeWidth = 128; _bakeHeight = 128; } else { _bakeWidth = 512; _bakeHeight = 512; } _paramValues = paramValues; if (textureCount == 0) { Bake(); } }
/// <summary> /// Default constructor /// </summary> /// <param name="client">Reference to the SecondLife client</param> /// <param name="totalLayers">Total number of layers this layer set is /// composed of</param> /// <param name="paramValues">Appearance parameters the drive the /// baking process</param> /// <param name="width">Width of the final baked image</param> /// <param name="height">Height of the final baked image</param> public Baker(SecondLife client, AppearanceManager.BakeType bakeType, int textureCount, Dictionary <int, float> paramValues) { Client = client; BakeType = bakeType; TextureCount = textureCount; if (bakeType == AppearanceManager.BakeType.Eyes) { BakeWidth = 128; BakeHeight = 128; } else { BakeWidth = 512; BakeHeight = 512; } ParamValues = paramValues; if (textureCount == 0) { Bake(); } }