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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.22