+++ /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 "../math/Color4.h"\r
-#include "../math/Matrix.h"\r
-#include "../math/Vector4.h"\r
-\r
-#include "ConstantTableDescription.h"\r
-#include "ConstantDescription.h"\r
-\r
-namespace SlimDX\r
-{\r
- ref class DataStream;\r
-\r
- namespace Direct3D9\r
- {\r
- ref class EffectHandle;\r
- ref class Device;\r
- \r
- /// <summary>\r
- /// Used to access the constant table. This table contains the variables that are used by high-level language shaders and effects.\r
- /// </summary>\r
- /// <unmanaged>ID3DXConstantTable</unmanaged>\r
- public ref class ConstantTable : public ComObject\r
- {\r
- COMOBJECT(ID3DXConstantTable, ConstantTable);\r
-\r
- public:\r
- EffectHandle^ GetConstant( EffectHandle^ handle, int index );\r
- EffectHandle^ GetConstant( EffectHandle^ handle, System::String^ name );\r
- EffectHandle^ GetConstantElement( EffectHandle^ handle, int index );\r
- ConstantDescription GetConstantDescription( EffectHandle^ handle );\r
- array<ConstantDescription>^ GetConstantDescriptionArray( EffectHandle^ handle );\r
- \r
- int GetSamplerIndex( EffectHandle^ sampler );\r
- Result SetDefaults( Device^ device );\r
-\r
- /// <summary>\r
- /// Sets the value of a parameter using the specified data.\r
- /// </summary>\r
- /// <param name="parameter">The parameter whose value is to be set.</param>\r
- /// <param name="value">The new value for the parameter.</param>\r
- /// <returns>A <see cref="SlimDX::Result"/> object describing the result of the operation.</returns>\r
- generic<typename T> where T : value class\r
- Result SetValue( Device^ device, EffectHandle^ parameter, T value );\r
-\r
- /// <summary>\r
- /// Sets the value of a parameter using the specified data.\r
- /// </summary>\r
- /// <param name="parameter">The array parameter whose value is to be set.</param>\r
- /// <param name="values">The array of new values for the array parameter.</param>\r
- /// <returns>A <see cref="SlimDX::Result"/> object describing the result of the operation.</returns>\r
- generic<typename T> where T : value class\r
- Result SetValue( Device^ device, EffectHandle^ parameter, array<T>^ values );\r
-\r
- property DataStream^ Buffer\r
- {\r
- DataStream^ get();\r
- }\r
-\r
- property int BufferSize\r
- {\r
- int get() { return InternalPointer->GetBufferSize(); }\r
- }\r
-\r
- property ConstantTableDescription Description\r
- {\r
- ConstantTableDescription get();\r
- }\r
- };\r
- }\r
-}\r