/[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/15 19:27:54	75
+++ trunk/gr2lib/core/coretypes/implementation/Texture.cs	2010/07/15 21:50:56	79
@@ -3,22 +3,10 @@
 using System.Text;
 using gr2lib.core.helpers;
 
+using gr2lib.core.interfaces;
+
 namespace gr2lib.core.coretypes.implementation
 {
-
-    public interface ITexture
-    {
-        FilePath FromFileName { get; set; }
-        int TextureType { get; set; }
-        int Width { get; set; }
-        int Height { get; set; }
-        int Encoding { get; set; }
-        int SubFormat { get; set; }
-        Layout Layout { get; set; }
-        List<Image> Images { get; set; }
-        IntPtr ExtendedData { get; set; }
-    }
-
     public class Texture : ITexture
     {
         private FilePath _FromFileName;
@@ -31,7 +19,7 @@
         private List<Image> _Images;
         private IntPtr _ExtendedData;
 
-        public IntPtr NativePointer;
+        
 
         public Texture()
         {
@@ -92,5 +80,10 @@
         public List<Image> Images { get { return _Images; } set { _Images = value; } }
         public IntPtr ExtendedData { get { return _ExtendedData; } set { _ExtendedData = value; } }
         #endregion
+
+        #region INativePointer Members
+        private IntPtr _NativePointer;
+        public IntPtr NativePointer { get { return _NativePointer; } set { _NativePointer = value; } }
+        #endregion
     }
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22