/[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 82 by william, Thu Jul 15 23:36:04 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 29  namespace gr2lib.core.coretypes.implemen Line 17  namespace gr2lib.core.coretypes.implemen
17          private int _SubFormat;          private int _SubFormat;
18          private Layout _Layout;          private Layout _Layout;
19          private List<Image> _Images;          private List<Image> _Images;
         private IntPtr _ExtendedData;  
20    
21          public IntPtr NativePointer;  
22            
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 90  namespace gr2lib.core.coretypes.implemen Line 78  namespace gr2lib.core.coretypes.implemen
78          public int SubFormat { get { return _SubFormat; } set { _SubFormat = value; } }          public int SubFormat { get { return _SubFormat; } set { _SubFormat = value; } }
79          public Layout Layout { get { return _Layout; } set { _Layout = value; } }          public Layout Layout { get { return _Layout; } set { _Layout = value; } }
80          public List<Image> Images { get { return _Images; } set { _Images = value; } }          public List<Image> Images { get { return _Images; } set { _Images = value; } }
81            #endregion
82    
83            #region INativePointer Members
84            private IntPtr _NativePointer;
85            public IntPtr NativePointer { get { return _NativePointer; } set { _NativePointer = value; } }
86            #endregion
87    
88            #region IExtendedData Members
89            private IntPtr _ExtendedData;
90          public IntPtr ExtendedData { get { return _ExtendedData; } set { _ExtendedData = value; } }          public IntPtr ExtendedData { get { return _ExtendedData; } set { _ExtendedData = value; } }
91          #endregion          #endregion
92      }      }

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

  ViewVC Help
Powered by ViewVC 1.1.22