/[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 72 by william, Thu Jul 15 14:22:00 2010 UTC revision 75 by william, Thu Jul 15 19:27:54 2010 UTC
# Line 8  namespace gr2lib.core.coretypes.implemen Line 8  namespace gr2lib.core.coretypes.implemen
8    
9      public interface ITexture      public interface ITexture
10      {      {
11          string FromFileName { get; set; }          FilePath FromFileName { get; set; }
12          int TextureType { get; set; }          int TextureType { get; set; }
13          int Width { get; set; }          int Width { get; set; }
14          int Height { get; set; }          int Height { get; set; }
# Line 21  namespace gr2lib.core.coretypes.implemen Line 21  namespace gr2lib.core.coretypes.implemen
21    
22      public class Texture : ITexture      public class Texture : ITexture
23      {      {
24          private string _FromFileName;          private FilePath _FromFileName;
25          private int _TextureType;          private int _TextureType;
26          private int _Width;          private int _Width;
27          private int _Height;          private int _Height;
# Line 35  namespace gr2lib.core.coretypes.implemen Line 35  namespace gr2lib.core.coretypes.implemen
35    
36          public Texture()          public Texture()
37          {          {
38                this.FromFileName = "";
39                this.TextureType = 0;
40                this.Width = 0;
41                this.Height = 0;
42                this.Encoding = 0;
43                this.SubFormat = 0;
44                this.Layout = new Layout();
45                this.Images = new List<Image>();
46                this.ExtendedData = IntPtr.Zero;
47                this.NativePointer = IntPtr.Zero;
48          }          }
49    
50          internal static Texture ReadFromMemory(IntPtr pointer)          internal static Texture ReadFromMemory(IntPtr pointer)
# Line 72  namespace gr2lib.core.coretypes.implemen Line 82  namespace gr2lib.core.coretypes.implemen
82          }          }
83    
84          #region ITexture Members          #region ITexture Members
85          public string FromFileName { get { return _FromFileName; } set { _FromFileName = value; } }          public FilePath FromFileName { get { return _FromFileName; } set { _FromFileName = value; } }
86          public int TextureType { get { return _TextureType; } set { _TextureType = value; } }          public int TextureType { get { return _TextureType; } set { _TextureType = value; } }
87          public int Width { get { return _Width; } set { _Width = value; } }          public int Width { get { return _Width; } set { _Width = value; } }
88          public int Height { get { return _Height; } set { _Height = value; } }          public int Height { get { return _Height; } set { _Height = value; } }

Legend:
Removed from v.72  
changed lines
  Added in v.75

  ViewVC Help
Powered by ViewVC 1.1.22