+++ /dev/null
-/*\r
-* Copyright (c) 2007-2010 SlimDX Group\r
-* \r
-* Permission is hereby granted, free of charge, to any person obtaining a copy\r
-* of this software and associated documentation files (the "Software"), to deal\r
-* in the Software without restriction, including without limitation the rights\r
-* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r
-* copies of the Software, and to permit persons to whom the Software is\r
-* furnished to do so, subject to the following conditions:\r
-* \r
-* The above copyright notice and this permission notice shall be included in\r
-* all copies or substantial portions of the Software.\r
-* \r
-* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
-* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r
-* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r
-* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r
-* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r
-* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r
-* THE SOFTWARE.\r
-*/\r
-#pragma once\r
-\r
-#include "Resource.h"\r
-#include "../DataBox.h"\r
-\r
-#include "Box.h"\r
-#include "VolumeDescription.h"\r
-\r
-namespace SlimDX\r
-{\r
- ref class DataStream;\r
-\r
- namespace Direct3D9\r
- {\r
- value class ImageInformation;\r
-\r
- /// <summary>Applications use the methods of the Volume class to manipulate volume resources.</summary>\r
- /// <unmanaged>IDirect3DVolume9</unmanaged>\r
- public ref class Volume : public Resource\r
- {\r
- COMOBJECT(IDirect3DVolume9, Volume);\r
-\r
- private:\r
- static Result FromFileInMemory_Internal( Volume^ volume, const void* memory, UINT size, Filter filter, int colorKey, Box* sourceBox, Box* destinationBox, PaletteEntry* palette, ImageInformation* imageInformation );\r
-\r
- public:\r
- virtual ~Volume() { }\r
-\r
- static Result FromFileInMemory( Volume^ volume, array<System::Byte>^ memory, Filter filter, int colorKey, Box sourceBox, Box destinationBox, array<PaletteEntry>^ palette, [Out] ImageInformation% imageInformation );\r
- static Result FromFileInMemory( Volume^ volume, array<System::Byte>^ memory, Filter filter, int colorKey, Box sourceBox, Box destinationBox, [Out] ImageInformation% imageInformation );\r
- static Result FromFileInMemory( Volume^ volume, array<System::Byte>^ memory, Filter filter, int colorKey, Box sourceBox, Box destinationBox );\r
- static Result FromFileInMemory( Volume^ volume, array<System::Byte>^ memory, Filter filter, int colorKey );\r
-\r
- static Result FromFileInStream( Volume^ volume, System::IO::Stream^stream, Filter filter, int colorKey, Box sourceBox, Box destinationBox, array<PaletteEntry>^ palette, [Out] ImageInformation% imageInformation );\r
- static Result FromFileInStream( Volume^ volume, System::IO::Stream^stream, Filter filter, int colorKey, Box sourceBox, Box destinationBox, [Out] ImageInformation% imageInformation );\r
- static Result FromFileInStream( Volume^ volume, System::IO::Stream^stream, Filter filter, int colorKey, Box sourceBox, Box destinationBox );\r
- static Result FromFileInStream( Volume^ volume, System::IO::Stream^stream, Filter filter, int colorKey );\r
-\r
- static Result FromFile( Volume^ volume, System::String^ fileName, Filter filter, int colorKey, Box sourceBox, Box destinationBox, array<PaletteEntry>^ palette, [Out] ImageInformation% imageInformation );\r
- static Result FromFile( Volume^ volume, System::String^ fileName, Filter filter, int colorKey, Box sourceBox, Box destinationBox, [Out] ImageInformation% imageInformation );\r
- static Result FromFile( Volume^ volume, System::String^ fileName, Filter filter, int colorKey, Box sourceBox, Box destinationBox );\r
- static Result FromFile( Volume^ volume, System::String^ fileName, Filter filter, int colorKey );\r
-\r
- static Result FromVolume( Volume^ destinationVolume, Volume^ sourceVolume, Filter filter, int colorKey, Box sourceBox, Box destinationBox, array<PaletteEntry>^ destinationPalette, array<PaletteEntry>^ sourcePalette );\r
- static Result FromVolume( Volume^ destinationVolume, Volume^ sourceVolume, Filter filter, int colorKey, Box sourceBox, Box destinationBox );\r
- static Result FromVolume( Volume^ destinationVolume, Volume^ sourceVolume, Filter filter, int colorKey );\r
-\r
- static DataStream^ ToStream( Volume^ volume, ImageFileFormat format, Box box, array<PaletteEntry>^ palette );\r
- static DataStream^ ToStream( Volume^ volume, ImageFileFormat format, Box box );\r
- static DataStream^ ToStream( Volume^ volume, ImageFileFormat format );\r
-\r
- static Result ToFile( Volume^ volume, System::String^ fileName, ImageFileFormat format, Box box, array<PaletteEntry>^ palette );\r
- static Result ToFile( Volume^ volume, System::String^ fileName, ImageFileFormat format, Box box );\r
- static Result ToFile( Volume^ volume, System::String^ fileName, ImageFileFormat format );\r
-\r
- DataBox^ LockBox( LockFlags flags );\r
- DataBox^ LockBox( Box box, LockFlags flags );\r
- Result UnlockBox();\r
-\r
- property VolumeDescription Description\r
- {\r
- VolumeDescription get();\r
- }\r
- };\r
- }\r
-}\r