/[gr2lib]/trunk/gr2lib/core/coretypes/implementation/Texture.cs
ViewVC logotype

Diff of /trunk/gr2lib/core/coretypes/implementation/Texture.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/gr2lib/core/coretypes/implementation/Texture.cs	2010/07/29 07:47:13	195
+++ trunk/gr2lib/core/coretypes/implementation/Texture.cs	2010/07/29 07:47:26	196
@@ -17,6 +17,7 @@
     /// <summary>
     /// Represents a Granny_Texture
     /// </summary>
+    [Editor(typeof(UITextureEditor), typeof(UITypeEditor))]
     public class Texture : ITexture
     {
         private GrannyRigResource _rigResource;
@@ -29,7 +30,7 @@
         private NameValuePair<string, granny_pixel_layout> _SubFormat;
         private Layout _Layout;
         private List<Image> _Images;
-
+        //private bool _IsTexture;
         /// <summary>
         /// Gets the string representation of this instance
         /// </summary>
@@ -58,6 +59,7 @@
             this.SubFormat = new NameValuePair<string, granny_pixel_layout>(coreapi.EnumToStringSupport.GetGrannyEnumTypeString<granny_pixel_layout>(granny_pixel_layout.GrannyBGRA8888PixelFormat), granny_pixel_layout.GrannyBGRA8888PixelFormat);
             this.Layout = new Layout();
             this.Images = new List<Image>();
+            //this.IsTexture = true;
             //this.ExtendedData = new IntPtr();
             //this.NativePointer = IntPtr.Zero;
             this._rigResource = new GrannyRigResource();
@@ -76,6 +78,7 @@
             this.SubFormat = new NameValuePair<string, granny_pixel_layout>(coreapi.EnumToStringSupport.GetGrannyEnumTypeString<granny_pixel_layout>(granny_pixel_layout.GrannyBGRA8888PixelFormat), granny_pixel_layout.GrannyBGRA8888PixelFormat);
             this.Layout = new Layout();
             this.Images = new List<Image>();
+            //this.IsTexture = true;
             //this.ExtendedData = new IntPtr();
             //this.NativePointer = IntPtr.Zero;
             this._rigResource = new GrannyRigResource();
@@ -215,6 +218,12 @@
         /// </summary>
         [RefreshPropertiesAttribute(RefreshProperties.All)]
         public List<Image> Images { get { return _Images; } set { _Images = value; } }
+
+
+        ///// <summary>
+        ///// Indicates if this instance is a texture or not
+        ///// </summary>
+        //public bool IsTexture { get { return _IsTexture; } set { _IsTexture = value; } }
         #endregion
 
         #region INativePointer Members

 

  ViewVC Help
Powered by ViewVC 1.1.22