From fa29cf5c5010f7c3e83494786be1b0c11c663e6d Mon Sep 17 00:00:00 2001 From: Jeff Ames Date: Tue, 14 Apr 2009 10:00:13 +0000 Subject: Update svn properties. --- .../Scripting/Minimodule/SOPObjectMaterial.cs | 176 ++++++++++----------- 1 file changed, 88 insertions(+), 88 deletions(-) (limited to 'OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObjectMaterial.cs') diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObjectMaterial.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObjectMaterial.cs index 57d84e1..63fd31e 100644 --- a/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObjectMaterial.cs +++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObjectMaterial.cs @@ -1,88 +1,88 @@ -using System.Drawing; -using OpenMetaverse; -using OpenSim.Region.Framework.Scenes; - -namespace OpenSim.Region.OptionalModules.Scripting.Minimodule -{ - class SOPObjectMaterial : IObjectMaterial - { - private readonly int m_face; - private readonly SceneObjectPart m_parent; - - public SOPObjectMaterial(int m_face, SceneObjectPart m_parent) - { - this.m_face = m_face; - this.m_parent = m_parent; - } - - public Color Color - { - get - { - Color4 res = GetTexface().RGBA; - return Color.FromArgb((int) (res.A*255), (int) (res.R*255), (int) (res.G*255), (int) (res.B*255)); - } - set - { - Primitive.TextureEntry tex = m_parent.Shape.Textures; - Primitive.TextureEntryFace texface = tex.CreateFace((uint)m_face); - texface.RGBA = new Color4(value.R,value.G,value.B,value.A); - tex.FaceTextures[m_face] = texface; - m_parent.UpdateTexture(tex); - } - } - - public UUID Texture - { - get - { - Primitive.TextureEntryFace texface = GetTexface(); - return texface.TextureID; - } - set - { - Primitive.TextureEntry tex = m_parent.Shape.Textures; - Primitive.TextureEntryFace texface = tex.CreateFace((uint)m_face); - texface.TextureID = value; - tex.FaceTextures[m_face] = texface; - m_parent.UpdateTexture(tex); - } - } - - private Primitive.TextureEntryFace GetTexface() - { - Primitive.TextureEntry tex = m_parent.Shape.Textures; - return tex.GetFace((uint)m_face); - } - - public TextureMapping Mapping - { - get { throw new System.NotImplementedException(); } - set { throw new System.NotImplementedException(); } - } - - public bool Bright - { - get { return GetTexface().Fullbright; } - set { throw new System.NotImplementedException(); } - } - - public double Bloom - { - get { return GetTexface().Glow; } - set { throw new System.NotImplementedException(); } - } - - public bool Shiny - { - get { return GetTexface().Shiny != Shininess.None; } - set { throw new System.NotImplementedException(); } - } - - public bool BumpMap - { - get { throw new System.NotImplementedException(); } - set { throw new System.NotImplementedException(); } - } - } -} +using System.Drawing; +using OpenMetaverse; +using OpenSim.Region.Framework.Scenes; + +namespace OpenSim.Region.OptionalModules.Scripting.Minimodule +{ + class SOPObjectMaterial : IObjectMaterial + { + private readonly int m_face; + private readonly SceneObjectPart m_parent; + + public SOPObjectMaterial(int m_face, SceneObjectPart m_parent) + { + this.m_face = m_face; + this.m_parent = m_parent; + } + + public Color Color + { + get + { + Color4 res = GetTexface().RGBA; + return Color.FromArgb((int) (res.A*255), (int) (res.R*255), (int) (res.G*255), (int) (res.B*255)); + } + set + { + Primitive.TextureEntry tex = m_parent.Shape.Textures; + Primitive.TextureEntryFace texface = tex.CreateFace((uint)m_face); + texface.RGBA = new Color4(value.R,value.G,value.B,value.A); + tex.FaceTextures[m_face] = texface; + m_parent.UpdateTexture(tex); + } + } + + public UUID Texture + { + get + { + Primitive.TextureEntryFace texface = GetTexface(); + return texface.TextureID; + } + set + { + Primitive.TextureEntry tex = m_parent.Shape.Textures; + Primitive.TextureEntryFace texface = tex.CreateFace((uint)m_face); + texface.TextureID = value; + tex.FaceTextures[m_face] = texface; + m_parent.UpdateTexture(tex); + } + } + + private Primitive.TextureEntryFace GetTexface() + { + Primitive.TextureEntry tex = m_parent.Shape.Textures; + return tex.GetFace((uint)m_face); + } + + public TextureMapping Mapping + { + get { throw new System.NotImplementedException(); } + set { throw new System.NotImplementedException(); } + } + + public bool Bright + { + get { return GetTexface().Fullbright; } + set { throw new System.NotImplementedException(); } + } + + public double Bloom + { + get { return GetTexface().Glow; } + set { throw new System.NotImplementedException(); } + } + + public bool Shiny + { + get { return GetTexface().Shiny != Shininess.None; } + set { throw new System.NotImplementedException(); } + } + + public bool BumpMap + { + get { throw new System.NotImplementedException(); } + set { throw new System.NotImplementedException(); } + } + } +} -- cgit v1.1