Пример #1
0
		// Method to marshal from native to managed struct
        internal unsafe void __MarshalFrom(ref __Native @ref)
        {            
            this.Size = @ref.Size;
            this.Position = @ref.Position;
            this.Velocity = @ref.Velocity;
            this.InsideConeAngle = @ref.InsideConeAngle;
            this.OutsideConeAngle = @ref.OutsideConeAngle;
            this.ConeOrientation = @ref.ConeOrientation;
            this.ConeOutsideVolume = @ref.ConeOutsideVolume;
            this.MinDistance = @ref.MinDistance;
            this.MaxDistance = @ref.MaxDistance;
            this.Mode = @ref.Mode;
        }
Пример #2
0
		// Method to marshal from native to managed struct
        internal unsafe void __MarshalFrom(ref __Native @ref)
        {            
            this.Size = @ref.Size;
            this.Position = @ref.Position;
            this.Velocity = @ref.Velocity;
            this.OrientFront = @ref.OrientFront;
            this.OrientTop = @ref.OrientTop;
            this.DistanceFactor = @ref.DistanceFactor;
            this.RolloffFactor = @ref.RolloffFactor;
            this.DopplerFactor = @ref.DopplerFactor;
        }
Пример #3
0
 /// <summary>	
 /// The GetOrientation method retrieves the orientation of the listener's head.	
 /// </summary>	
 /// <param name="vOrientFrontRef"><dd> Address of a <see cref="SharpDX.Mathematics.Interop.RawVector3"/> structure that receives the listener's front orientation vector. </dd></param>	
 /// <param name="vOrientTopRef"><dd> Address of a <see cref="SharpDX.Mathematics.Interop.RawVector3"/> structure that receives the listener's top orientation vector. </dd></param>	
 /// <returns><p>If the method succeeds, the return value is DS_OK. If the method fails, the return value may be DSERR_INVALIDPARAM.</p></returns>	
 /// <remarks>	
 /// <p>The front vector points in the direction of the listener's nose, and the top vector points up from the top of the listener's head. By default, the front vector is (0,0,1.0) and the top vector is (0,1.0,0).</p> <p>The values returned are not necessarily the same as those set by using SetOrientation. DirectSound normalizes orientation vectors so that they are at right angles and have a magnitude of less than or equal to 1.0.</p>	
 /// </remarks>	
 /// <include file='.\..\Documentation\CodeComments.xml' path="/comments/comment[@id='IDirectSound3DListener::GetOrientation']/*"/>	
 /// <msdn-id>microsoft.directx_sdk.idirectsound3dlistener8.idirectsound3dlistener8.getorientation</msdn-id>	
 /// <unmanaged>HRESULT IDirectSound3DListener::GetOrientation([Out] D3DVECTOR* pvOrientFront,[Out] D3DVECTOR* pvOrientTop)</unmanaged>	
 /// <unmanaged-short>IDirectSound3DListener::GetOrientation</unmanaged-short>	
 internal void GetOrientation(out SharpDX.Mathematics.Interop.RawVector3 vOrientFrontRef, out SharpDX.Mathematics.Interop.RawVector3 vOrientTopRef) {
     unsafe {
         vOrientFrontRef = new SharpDX.Mathematics.Interop.RawVector3();
         vOrientTopRef = new SharpDX.Mathematics.Interop.RawVector3();
         SharpDX.Result __result__;
         fixed (void* vOrientFrontRef_ = &vOrientFrontRef)
             fixed (void* vOrientTopRef_ = &vOrientTopRef)
                 __result__= 
 				SharpDX.DirectSound.LocalInterop.Calliint(_nativePointer, vOrientFrontRef_, vOrientTopRef_,((void**)(*(void**)_nativePointer))[6]);		
         __result__.CheckError();
     }
 }
Пример #4
0
     /// <summary>	
     /// The GetVelocity method retrieves the listener's velocity.	
     /// </summary>	
     /// <param name="vVelocityRef"><dd> Address of a <see cref="SharpDX.Mathematics.Interop.RawVector3"/> structure that receives the listener's velocity. </dd></param>	
     /// <returns><p>If the method succeeds, the return value is DS_OK. If the method fails, the return value may be DSERR_INVALIDPARAM.</p></returns>	
     /// <remarks>	
     /// <p>Velocity is used only for calculating Doppler effect. It does not change the listener's position. To move the listener, use the SetPosition method.</p> <p>The default velocity is (0,0,0).</p> <p>By default, measurement units are meters per second, but this can be changed by calling the SetDistanceFactor method.</p>	
     /// </remarks>	
     /// <include file='.\..\Documentation\CodeComments.xml' path="/comments/comment[@id='IDirectSound3DListener::GetVelocity']/*"/>	
     /// <msdn-id>microsoft.directx_sdk.idirectsound3dlistener8.idirectsound3dlistener8.getvelocity</msdn-id>	
     /// <unmanaged>HRESULT IDirectSound3DListener::GetVelocity([Out] D3DVECTOR* pvVelocity)</unmanaged>	
     /// <unmanaged-short>IDirectSound3DListener::GetVelocity</unmanaged-short>	
     internal void GetVelocity(out SharpDX.Mathematics.Interop.RawVector3 vVelocityRef) {
         unsafe {
             vVelocityRef = new SharpDX.Mathematics.Interop.RawVector3();
             SharpDX.Result __result__;
             fixed (void* vVelocityRef_ = &vVelocityRef)
                 __result__= 
 				SharpDX.DirectSound.LocalInterop.Calliint(_nativePointer, vVelocityRef_,((void**)(*(void**)_nativePointer))[9]);		
             __result__.CheckError();
         }
     }
Пример #5
0
 /// <summary>	
 /// <p>Gets the scale, rotation, and translation values of the animation set.</p>	
 /// </summary>	
 /// <param name="periodicPosition"><dd>  <p>Position of the animation set. The position can be obtained by calling <strong><see cref="SharpDX.Direct3D9.AnimationSet.GetPeriodicPosition"/></strong>.</p> </dd></param>	
 /// <param name="animation"><dd>  <p>Animation index.</p> </dd></param>	
 /// <param name="scaleRef"><dd>  <p>Pointer to the <strong><see cref="SharpDX.Mathematics.Interop.RawVector3"/></strong> vector that describes the scale of the animation set.</p> </dd></param>	
 /// <param name="rotationRef"><dd>  <p>Pointer to the <strong><see cref="SharpDX.Mathematics.Interop.RawQuaternion"/></strong> quaternion that describes the rotation of the animation set.</p> </dd></param>	
 /// <param name="translationRef"><dd>  <p>Pointer to the <strong><see cref="SharpDX.Mathematics.Interop.RawVector3"/></strong> vector that describes the translation of the animation set.</p> </dd></param>	
 /// <returns><p>The return values of this method are implemented by an application programmer.In general, if no error occurs, program the method to return <see cref="SharpDX.Direct3D9.ResultCode.Success"/>. Otherwise, program the method to return an appropriate error message from D3DERR or <strong>D3DXERR</strong>.</p></returns>	
 /// <include file='.\..\Documentation\CodeComments.xml' path="/comments/comment[@id='ID3DXAnimationSet::GetSRT']/*"/>	
 /// <msdn-id>bb205675</msdn-id>	
 /// <unmanaged>HRESULT ID3DXAnimationSet::GetSRT([In] double PeriodicPosition,[In] unsigned int Animation,[Out] D3DXVECTOR3* pScale,[Out] D3DXQUATERNION* pRotation,[Out] D3DXVECTOR3* pTranslation)</unmanaged>	
 /// <unmanaged-short>ID3DXAnimationSet::GetSRT</unmanaged-short>	
 public void GetSRT(double periodicPosition, int animation, out SharpDX.Mathematics.Interop.RawVector3 scaleRef, out SharpDX.Mathematics.Interop.RawQuaternion rotationRef, out SharpDX.Mathematics.Interop.RawVector3 translationRef) {
     unsafe {
         scaleRef = new SharpDX.Mathematics.Interop.RawVector3();
         rotationRef = new SharpDX.Mathematics.Interop.RawQuaternion();
         translationRef = new SharpDX.Mathematics.Interop.RawVector3();
         SharpDX.Result __result__;
         fixed (void* scaleRef_ = &scaleRef)
             fixed (void* rotationRef_ = &rotationRef)
                 fixed (void* translationRef_ = &translationRef)
                     __result__= 
     				SharpDX.Direct3D9.LocalInterop.Calliint(_nativePointer, periodicPosition, animation, scaleRef_, rotationRef_, translationRef_,((void**)(*(void**)_nativePointer))[9]);		
         __result__.CheckError();
     }
 }