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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 36 - (show annotations) (download)
Thu Aug 5 19:00:37 2010 UTC (9 years, 6 months ago) by william
File size: 1856 byte(s)
Add classes in an attempt to create an intelligent texture creator/importer/exporter/parser/etc,etc

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
8 namespace gr2lib_typedefs.typedefs.TextureCreator
9 {
10 public class bink_texture_creator : BaseTextureCreator, IBindableTexture
11 {
12 protected override string TextureCreatorName { get { return "Bink Texture Creator"; } }
13 #region Constructors
14 public bink_texture_creator() : base() { this.init(); }
15 public bink_texture_creator(string filename) : base(filename) { this.init(); }
16 public bink_texture_creator(byte[] data) : base(data) { this.init(); }
17 public bink_texture_creator(MemoryStream ms) : base(ms) { this.init(); }
18 private void init()
19 {
20 this.IsAnIBindableTexture = false;
21 }
22 #endregion
23
24 #region IBindableTexture Members
25 public bool CheckForBindableTexture(string filename)
26 {
27 if (!this.IsAnIBindableTexture) return false;
28 #if IS_NOT_BINDABLE
29 return false;
30 #else
31 // check if this texture can be bound to this texture creator
32 #endif
33 }
34 public bool CheckForBindableTexture(byte[] data)
35 {
36 if (!this.IsAnIBindableTexture) return false;
37 #if IS_NOT_BINDABLE
38 return false;
39 #else
40 // check if this texture can be bound to this texture creator
41 #endif
42 }
43 public bool CheckForBindableTexture(MemoryStream ms)
44 {
45 if (!this.IsAnIBindableTexture) return false;
46 #if IS_NOT_BINDABLE
47 return false;
48 #else
49 // check if this texture can be bound to this texture creator
50 #endif
51 }
52 #endregion
53 }
54 }

  ViewVC Help
Powered by ViewVC 1.1.22