/[Sims3RigEditor]/trunk/gr2lib_typedefs/typedefs/TextureCreator/default_texture_creator.cs
ViewVC logotype

Annotation of /trunk/gr2lib_typedefs/typedefs/TextureCreator/default_texture_creator.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 53 - (hide annotations) (download)
Wed Aug 11 10:34:12 2010 UTC (9 years, 11 months ago) by william
File size: 1153 byte(s)
committing fully-working bink texture creator (should support all or most image formats)
-- still need to implement other SurfaceFormat types

1 william 38 //#define IS_NOT_BINDABLE // when defined, will always return false for An IBindableTexture
2 william 36 using System;
3     using System.Collections.Generic;
4     using System.Text;
5     using gr2lib_typedefs.typedefs.TextureCreator.interfaces;
6     using System.IO;
7 william 38 using gr2lib.core.typedefs;
8 william 42 using gr2lib.core.ui.helpers;
9 william 48 using gr2lib.core;
10     using System.Runtime.InteropServices;
11     using System.Diagnostics;
12     using System.Drawing.Imaging;
13     using System.Drawing;
14 william 36
15     namespace gr2lib_typedefs.typedefs.TextureCreator
16     {
17 william 53 public class default_texture_creator //: ATextureResource
18     {
19 william 47 #region RessourceHandler for Default Textures
20     public class ResourceHandler : ATextureResourceHandler, IBindableTexture
21 william 36 {
22 william 47 #region IBindableTexture Members
23 william 53 public bool IsBindable { get { return bink_texture_creator.IsBindable; } }
24 william 47 #endregion
25     public ResourceHandler()
26     {
27     // add magic values for each supported texture type
28 william 53 this.Add(typeof(bink_texture_creator), new List<string>(new string[] { "*" }));
29 william 47 }
30 william 36 }
31     #endregion
32     }
33     }

  ViewVC Help
Powered by ViewVC 1.1.22