Beispiel #1
0
        /// <summary>	
        /// <p>Retrieves a description of one face of the specified cube texture level.</p>	
        /// </summary>	
        /// <param name="level"><dd>  <p>Specifies a level of a mipmapped cube texture.</p> </dd></param>	
        /// <returns><dd>  <p>Pointer to a <strong><see cref="SharpDX.Direct3D9.SurfaceDescription"/></strong> structure, describing one face of the specified cube texture level.</p> </dd></returns>	
        /// <remarks>	
        /// <p>The <strong><see cref="SharpDX.Direct3D9.SurfaceDescription"/></strong> structure contains Width and Height members, which describe the size of one face in the cube. To get the size of the entire cube, multiply six (the number of cube faces) by the product of Width and Height.</p>	
        /// </remarks>	
        /// <include file='.\..\Documentation\CodeComments.xml' path="/comments/comment[@id='IDirect3DCubeTexture9::GetLevelDesc']/*"/>	
        /// <msdn-id>bb174332</msdn-id>	
        /// <unmanaged>HRESULT IDirect3DCubeTexture9::GetLevelDesc([In] unsigned int Level,[Out] D3DSURFACE_DESC* pDesc)</unmanaged>	
        /// <unmanaged-short>IDirect3DCubeTexture9::GetLevelDesc</unmanaged-short>	
        public SharpDX.Direct3D9.SurfaceDescription GetLevelDescription(int level) {
            unsafe {
                SharpDX.Direct3D9.SurfaceDescription descRef;
                descRef = new SharpDX.Direct3D9.SurfaceDescription();
                SharpDX.Result __result__;
                __result__= 
				SharpDX.Direct3D9.LocalInterop.Calliint(_nativePointer, level, &descRef,((void**)(*(void**)_nativePointer))[17]);		
                __result__.CheckError();
                return descRef;
            }
        }
Beispiel #2
0
     /// <summary>	
     /// <p>Retrieves a description of the surface.</p>	
     /// </summary>	
     /// <param name="descRef"><dd>  <p>Pointer to a <strong><see cref="SharpDX.Direct3D9.SurfaceDescription"/></strong> structure, describing the surface. </p> </dd></param>	
     /// <returns><p>If the method succeeds, the return value is <see cref="SharpDX.Direct3D9.ResultCode.Success"/>.</p><p><see cref="SharpDX.Direct3D9.ResultCode.InvalidCall"/> is returned if the argument is invalid.</p></returns>	
     /// <include file='.\..\Documentation\CodeComments.xml' path="/comments/comment[@id='IDirect3DSurface9::GetDesc']/*"/>	
     /// <msdn-id>bb205895</msdn-id>	
     /// <unmanaged>HRESULT IDirect3DSurface9::GetDesc([Out] D3DSURFACE_DESC* pDesc)</unmanaged>	
     /// <unmanaged-short>IDirect3DSurface9::GetDesc</unmanaged-short>	
     internal void GetDescription(out SharpDX.Direct3D9.SurfaceDescription descRef) {
         unsafe {
             descRef = new SharpDX.Direct3D9.SurfaceDescription();
             SharpDX.Result __result__;
             fixed (void* descRef_ = &descRef)
                 __result__= 
 				SharpDX.Direct3D9.LocalInterop.Calliint(_nativePointer, descRef_,((void**)(*(void**)_nativePointer))[12]);		
             __result__.CheckError();
         }
     }