/[gr2lib]/trunk/gr2lib/core/ui/typeeditors/PixelBytesEditor.cs
ViewVC logotype

Diff of /trunk/gr2lib/core/ui/typeeditors/PixelBytesEditor.cs

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

--- trunk/gr2lib/core/ui/typeeditors/PixelBytesEditor.cs	2010/07/24 05:43:04	190
+++ trunk/gr2lib/core/ui/typeeditors/PixelBytesEditor.cs	2010/07/24 06:31:50	191
@@ -163,7 +163,7 @@
             byte[] __bytes = _bytes.ToArray();
             Texture ReferenceTexture = Value[0].ReferenceTexture;
             gr2lib.core.coretypes.implementation.Layout SourcePixelLayout;
-            coreapi.GrannySwapRGBAToBGRA(ReferenceTexture.SubFormat.Value, out SourcePixelLayout);
+            coreapi.TextureSupport.GrannySwapRGBAToBGRA(ReferenceTexture.SubFormat.Value, out SourcePixelLayout);
             //string filename = @"exported_images\" + ReferenceTexture.FromFileName.Name;
             bool TextureCopied = false;
             byte[] buffer = new byte[ReferenceTexture.Width * ReferenceTexture.Height * ReferenceTexture.Layout.BytesPerPixel];
@@ -179,7 +179,7 @@
                 fixed (byte* p = buffer)
                 {
                     IntPtr byte_ptr = (IntPtr)p;
-                    TextureCopied = coreapi.GrannyCopyTextureImage(ReferenceTexture.NativePointer,
+                    TextureCopied = coreapi.TextureSupport.GrannyCopyTextureImage(ReferenceTexture.NativePointer,
                                                                 0,
                                                                 0,
                                                                 SourcePixelLayout.NativePointer,

 

  ViewVC Help
Powered by ViewVC 1.1.22