+++ /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 "EffectVariable11.h"\r
-\r
-namespace SlimDX\r
-{\r
- namespace Direct3D11\r
- {\r
- /// <summary>\r
- /// Represents a scalar effect variable.\r
- /// </summary>\r
- /// <unmanaged>ID3DX11EffectScalarVariable</unmanaged>\r
- public ref class EffectScalarVariable : public EffectVariable\r
- { \r
- private:\r
- ID3DX11EffectScalarVariable* m_Pointer;\r
- \r
- internal:\r
- EffectScalarVariable( ID3DX11EffectScalarVariable* pointer );\r
- \r
- public:\r
- /// <summary>\r
- /// Initializes a new instance of the <see cref="EffectScalarVariable"/> class.\r
- /// </summary>\r
- /// <param name="pointer">A pointer to the unmanaged interface.</param>\r
- EffectScalarVariable( System::IntPtr pointer );\r
- \r
- /// <summary>\r
- /// Sets the value of the scalar variable.\r
- /// </summary>\r
- /// <param name="value">The boolean value to set.</param>\r
- /// <returns>A <see cref="SlimDX::Result"/> object describing the result of the operation.</returns>\r
- Result Set( bool value );\r
-\r
- /// <summary>\r
- /// Sets the value of the scalar variable.\r
- /// </summary>\r
- /// <param name="value">The integer value to set.</param>\r
- /// <returns>A <see cref="SlimDX::Result"/> object describing the result of the operation.</returns>\r
- Result Set( int value );\r
-\r
- /// <summary>\r
- /// Sets the value of the scalar variable.\r
- /// </summary>\r
- /// <param name="value">The floating point value to set.</param>\r
- /// <returns>A <see cref="SlimDX::Result"/> object describing the result of the operation.</returns>\r
- Result Set( float value );\r
-\r
- /// <summary>\r
- /// Sets the value of the scalar variable.\r
- /// </summary>\r
- /// <param name="values">The array of boolean values to set.</param>\r
- /// <returns>A <see cref="SlimDX::Result"/> object describing the result of the operation.</returns>\r
- Result Set( array<bool>^ values );\r
-\r
- /// <summary>\r
- /// Sets the value of the scalar variable.\r
- /// </summary>\r
- /// <param name="values">The array of integer values to set.</param>\r
- /// <returns>A <see cref="SlimDX::Result"/> object describing the result of the operation.</returns>\r
- Result Set( array<int>^ values );\r
-\r
- /// <summary>\r
- /// Sets the value of the scalar variable.\r
- /// </summary>\r
- /// <param name="values">The array of floating point values to set.</param>\r
- /// <returns>A <see cref="SlimDX::Result"/> object describing the result of the operation.</returns>\r
- Result Set( array<float>^ values );\r
- \r
- /// <summary>\r
- /// Gets the value of the variable as a boolean.\r
- /// </summary>\r
- /// <returns>The boolean value of the scalar.</returns>\r
- bool GetBool();\r
-\r
- /// <summary>\r
- /// Gets the value of the variable as an integer.\r
- /// </summary>\r
- /// <returns>The integer value of the scalar.</returns>\r
- int GetInt();\r
-\r
- /// <summary>\r
- /// Gets the value of the variable as a floating point.\r
- /// </summary>\r
- /// <returns>The floating point value of the scalar.</returns>\r
- float GetFloat();\r
-\r
- /// <summary>\r
- /// Gets the value of the variable as an array of booleans.\r
- /// </summary>\r
- /// <param name="count">The number of values to get.</param>\r
- /// <returns>The array of boolean values of the variable.</returns>\r
- array<bool>^ GetBoolArray( int count );\r
-\r
- /// <summary>\r
- /// Gets the value of the variable as an array of integers.\r
- /// </summary>\r
- /// <param name="count">The number of values to get.</param>\r
- /// <returns>The array of integer values of the variable.</returns>\r
- array<int>^ GetIntArray( int count );\r
-\r
- /// <summary>\r
- /// Gets the value of the variable as an array of floating points.\r
- /// </summary>\r
- /// <param name="count">The number of values to get.</param>\r
- /// <returns>The array of floating point values of the variable.</returns>\r
- array<float>^ GetFloatArray( int count );\r
- };\r
- }\r
-};
\ No newline at end of file