예제 #1
0
            /*public static long SaveCompressedTextureToFile(IntPtr device, IntPtr context, IntPtr resource, string path, int blocktype)
             * {
             *  if (IntPtr.Size == 8)
             *  {
             *      return NativeMethods64.SaveCompressedTextureToFile(device, context, resource, path, blocktype);
             *  }
             *  else
             *  {
             *      return NativeMethods32.SaveCompressedTextureToFile(device, context, resource, path, blocktype);
             *  }
             * }*/

            public static long LoadTextureFromMemory(IntPtr device, IntPtr dataPointer, int dataLength, out IntPtr resource)
            {
                if (IntPtr.Size == 8)
                {
                    return(NativeMethods64.LoadTextureFromMemory(device, dataPointer, dataLength, out resource));
                }
                else
                {
                    return(NativeMethods32.LoadTextureFromMemory(device, dataPointer, dataLength, out resource));
                }
            }