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

Diff of /trunk/gr2lib_typedefs/typedefs/TextureCreator/s3tc_texture_creator.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/gr2lib_typedefs/typedefs/TextureCreator/s3tc_texture_creator.cs	2010/08/11 10:59:40	54
+++ trunk/gr2lib_typedefs/typedefs/TextureCreator/s3tc_texture_creator.cs	2010/08/12 08:37:47	55
@@ -127,7 +127,7 @@
             {
                 this.HaveBindableTexture = false;
                 //Debug.WriteLine(ex.ToString());
-                throw new InvalidOperationException("Failed to read texture using: " + new s3tc_texture_creator().TextureCreatorName, ex);
+                throw new InvalidOperationException("Failed to read texture using: " + this.TextureCreatorName, ex);
             }
 
         }
@@ -160,7 +160,7 @@
             //    default:
             //        throw new InvalidOperationException("Attempted to read pixel bytes for an image with an unsupported pixel format.");
             //}
-            byte[] data;
+            //byte[] data;
             Bgr565[] _Bgr565;
             Bgra5551[] _Bgra5551;
             //Color[] _Color;
@@ -170,19 +170,19 @@
             if ((SurfaceFormat)this.TextureRawPixelFormat == SurfaceFormat.Dxt1)
             {
                 throw new NotImplementedException("DDS Image Format: " + ((SurfaceFormat)this.TextureRawPixelFormat).GetType().Name + " has not been implemented yet.");
-                //  8 bytes per 4x4 blocks 
-                int blocks = (_texture.Width * _texture.Height) / 16;
-                data = new byte[8 * blocks];
-                _texture.GetData<byte>(data, 0, data.Length); 
+                ////  8 bytes per 4x4 blocks 
+                //int blocks = (_texture.Width * _texture.Height) / 16;
+                //data = new byte[8 * blocks];
+                //_texture.GetData<byte>(data, 0, data.Length); 
 
             }
             else if ((int)(SurfaceFormat)this.TextureRawPixelFormat > 28 && (int)(SurfaceFormat)this.TextureRawPixelFormat < 33)
             {
                 throw new NotImplementedException("DDS Image Format: " + ((SurfaceFormat)this.TextureRawPixelFormat).GetType().Name + " has not been implemented yet.");
-                //  16 bytes per 4x4 blocks 
-                int blocks = (_texture.Width * _texture.Height) / 16;
-                data = new byte[16 * blocks];
-                _texture.GetData<byte>(data, 0, data.Length); 
+                ////  16 bytes per 4x4 blocks 
+                //int blocks = (_texture.Width * _texture.Height) / 16;
+                //data = new byte[16 * blocks];
+                //_texture.GetData<byte>(data, 0, data.Length); 
             }
             else
             {

 

  ViewVC Help
Powered by ViewVC 1.1.22