OSDN Git Service

Merge branch 'feature/#36529_SlimDXからSharpDXへの移行' into develop
[dtxmania/dtxmania.git] / SlimDXc_Jun2010(VC++2008) / source / direct3d9 / BaseTexture.h
diff --git a/SlimDXc_Jun2010(VC++2008)/source/direct3d9/BaseTexture.h b/SlimDXc_Jun2010(VC++2008)/source/direct3d9/BaseTexture.h
deleted file mode 100644 (file)
index 4ba54c2..0000000
+++ /dev/null
@@ -1,140 +0,0 @@
-/*\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 "../DataStream.h"\r
-#include "Enums.h"\r
-#include "Resource.h"\r
-\r
-namespace SlimDX\r
-{\r
-       namespace Direct3D9\r
-       {\r
-               /// <summary>\r
-               /// Represents a base class for all texture resources.\r
-               /// </summary>\r
-               /// <unmanaged>IDirect3DBaseTexture9</unmanaged>\r
-               public ref class BaseTexture abstract : public Resource\r
-               {\r
-                       COMOBJECT_BASE(IDirect3DBaseTexture9);\r
-\r
-               protected:\r
-                       /// <summary>\r
-                       /// Initializes a new instance of the <see cref="BaseTexture"/> class.\r
-                       /// </summary>\r
-                       BaseTexture() { }\r
-\r
-               internal:\r
-                       static BaseTexture^ FromUnmanaged( IDirect3DBaseTexture9 *texture );\r
-\r
-               public:\r
-                       /// <summary>\r
-                       /// Releases all resources used by the <see cref="BaseTexture"/>.\r
-                       /// </summary>\r
-                       virtual ~BaseTexture() { }\r
-\r
-                       /// <summary>\r
-                       /// Filters mipmap levels of a texture.\r
-                       /// </summary>\r
-                       /// <param name="sourceLevel">The mipmap level whose image is used to generate the subsequent levels.</param>\r
-                       /// <param name="filter">Set of filtering options for the mipmap.</param>\r
-                       /// <param name="palette">The texture palette.</param>\r
-                       /// <returns>A <see cref="SlimDX::Result"/> object describing the result of the operation.</returns>\r
-                       Result FilterTexture( int sourceLevel, Filter filter, array<PaletteEntry>^ palette );\r
-                       \r
-                       /// <summary>\r
-                       /// Filters mipmap levels of a texture.\r
-                       /// </summary>\r
-                       /// <param name="sourceLevel">The mipmap level whose image is used to generate the subsequent levels.</param>\r
-                       /// <param name="filter">Set of filtering options for the mipmap.</param>\r
-                       /// <returns>A <see cref="SlimDX::Result"/> object describing the result of the operation.</returns>\r
-                       Result FilterTexture( int sourceLevel, Filter filter );\r
-                       \r
-                       /// <summary>\r
-                       /// Generates mipmap sublevels.\r
-                       /// </summary>\r
-                       void GenerateMipSublevels();\r
-\r
-                       /// <summary>\r
-                       /// Saves a texture to a stream.\r
-                       /// </summary>\r
-                       /// <param name="texture">The texture containing the image to save.</param>\r
-                       /// <param name="format">The file format to use when saving.</param>\r
-                       /// <returns>A <see cref="DataStream"/> containing the texture image.</returns>\r
-                       static DataStream^ ToStream( BaseTexture^ texture, ImageFileFormat format );\r
-                       \r
-                       /// <summary>\r
-                       /// Saves a texture to a stream.\r
-                       /// </summary>\r
-                       /// <param name="texture">The texture containing the image to save.</param>\r
-                       /// <param name="format">The file format to use when saving.</param>\r
-                       /// <param name="palette">The texture palette.</param>\r
-                       /// <returns>A <see cref="DataStream"/> containing the texture image.</returns>\r
-                       static DataStream^ ToStream( BaseTexture^ texture, ImageFileFormat format, array<PaletteEntry>^ palette );\r
-\r
-                       /// <summary>\r
-                       /// Saves a texture to a file.\r
-                       /// </summary>\r
-                       /// <param name="texture">The texture containing the image to save.</param>\r
-                       /// <param name="fileName">The name of the file to save to.</param>\r
-                       /// <param name="format">The file format to use when saving.</param>\r
-                       /// <returns>A <see cref="SlimDX::Result"/> object describing the result of the operation.</returns>\r
-                       static Result ToFile( BaseTexture^ texture, System::String^ fileName, ImageFileFormat format );\r
-                       \r
-                       /// <summary>\r
-                       /// Saves a texture to a file.\r
-                       /// </summary>\r
-                       /// <param name="texture">The texture containing the image to save.</param>\r
-                       /// <param name="fileName">The name of the file to save to.</param>\r
-                       /// <param name="format">The file format to use when saving.</param>\r
-                       /// <param name="palette">The texture palette.</param>\r
-                       /// <returns>A <see cref="SlimDX::Result"/> object describing the result of the operation.</returns>\r
-                       static Result ToFile( BaseTexture^ texture, System::String^ fileName, ImageFileFormat format, array<PaletteEntry>^ palette );\r
-               \r
-                       /// <summary>\r
-                       /// Gets or sets the filter used to automatically generate mipmaps.\r
-                       /// </summary>\r
-                       property TextureFilter AutoMipGenerationFilter\r
-                       {\r
-                               TextureFilter get() { return ( TextureFilter ) InternalPointer->GetAutoGenFilterType(); }\r
-                               void set(TextureFilter value) { InternalPointer->SetAutoGenFilterType( (D3DTEXTUREFILTERTYPE) value ); }\r
-                       }\r
-                       \r
-                       /// <summary>\r
-                       /// Gets the number of texture levels in a multilevel texture.\r
-                       /// </summary>\r
-                       property int LevelCount\r
-                       {\r
-                               int get() { return InternalPointer->GetLevelCount(); }\r
-                       }\r
-                       \r
-                       /// <summary>\r
-                       /// Gets or sets the level of detail for the texture.\r
-                       /// </summary>\r
-                       property int LevelOfDetail\r
-                       {\r
-                               int get() { return InternalPointer->GetLOD(); }\r
-                               void set(int value) { InternalPointer->SetLOD( value ); }\r
-                       }\r
-               };\r
-       }\r
-}\r