/[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

revision 73 by william, Thu Jul 15 14:31:59 2010 UTC revision 79 by william, Thu Jul 15 21:50:56 2010 UTC
# Line 3  using System.Collections.Generic; Line 3  using System.Collections.Generic;
3  using System.Text;  using System.Text;
4  using gr2lib.core.helpers;  using gr2lib.core.helpers;
5    
6    using gr2lib.core.interfaces;
7    
8  namespace gr2lib.core.coretypes.implementation  namespace gr2lib.core.coretypes.implementation
9  {  {
   
     public interface ITexture  
     {  
         string 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; }  
     }  
   
10      public class Texture : ITexture      public class Texture : ITexture
11      {      {
12          private string _FromFileName;          private FilePath _FromFileName;
13          private int _TextureType;          private int _TextureType;
14          private int _Width;          private int _Width;
15          private int _Height;          private int _Height;
# Line 31  namespace gr2lib.core.coretypes.implemen Line 19  namespace gr2lib.core.coretypes.implemen
19          private List<Image> _Images;          private List<Image> _Images;
20          private IntPtr _ExtendedData;          private IntPtr _ExtendedData;
21    
22          public IntPtr NativePointer;          
23    
24          public Texture()          public Texture()
25          {          {
# Line 82  namespace gr2lib.core.coretypes.implemen Line 70  namespace gr2lib.core.coretypes.implemen
70          }          }
71    
72          #region ITexture Members          #region ITexture Members
73          public string FromFileName { get { return _FromFileName; } set { _FromFileName = value; } }          public FilePath FromFileName { get { return _FromFileName; } set { _FromFileName = value; } }
74          public int TextureType { get { return _TextureType; } set { _TextureType = value; } }          public int TextureType { get { return _TextureType; } set { _TextureType = value; } }
75          public int Width { get { return _Width; } set { _Width = value; } }          public int Width { get { return _Width; } set { _Width = value; } }
76          public int Height { get { return _Height; } set { _Height = value; } }          public int Height { get { return _Height; } set { _Height = value; } }
# Line 92  namespace gr2lib.core.coretypes.implemen Line 80  namespace gr2lib.core.coretypes.implemen
80          public List<Image> Images { get { return _Images; } set { _Images = value; } }          public List<Image> Images { get { return _Images; } set { _Images = value; } }
81          public IntPtr ExtendedData { get { return _ExtendedData; } set { _ExtendedData = value; } }          public IntPtr ExtendedData { get { return _ExtendedData; } set { _ExtendedData = value; } }
82          #endregion          #endregion
83    
84            #region INativePointer Members
85            private IntPtr _NativePointer;
86            public IntPtr NativePointer { get { return _NativePointer; } set { _NativePointer = value; } }
87            #endregion
88      }      }
89  }  }

Legend:
Removed from v.73  
changed lines
  Added in v.79

  ViewVC Help
Powered by ViewVC 1.1.22