* Helpers.GetResourceStream() now uses the executable directory + openmetaverse_data as the path for finding resources instead of current directory + openmetaverse_data

* Added add, subtract, multiply operators to Color4
* Switched baking to use Color4 instead of System.Drawing.Color
* Untested implementation of multiply and add color operations in baking

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3077 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
John Hurliman
2009-08-12 06:11:36 +00:00
parent 41b7ad90c1
commit 04f920aea9
7 changed files with 129 additions and 106 deletions

View File

@@ -8,7 +8,7 @@ namespace OpenMetaverse
/// </summary>
public enum VisualColorOperation
{
None,
Add,
Blend,
Multiply
}
@@ -19,14 +19,14 @@ namespace OpenMetaverse
public struct VisualColorParam
{
public VisualColorOperation Operation;
public System.Drawing.Color[] Colors;
public Color4[] Colors;
/// <summary>
/// Construct VisualColorParam
/// </summary>
/// <param name="operation">Operation to apply when applying color to texture</param>
/// <param name="colors">Colors</param>
public VisualColorParam(VisualColorOperation operation, System.Drawing.Color[] colors)
public VisualColorParam(VisualColorOperation operation, Color4[] colors)
{
Operation = operation;
Colors = colors;