예제 #1
0
        private SharpDX.DXGI.Resource BeginCapture(out SharpDX.Mathematics.Interop.RawPoint pointerPos)
        {
            OutputDuplicateFrameInformation duplicateFrameInformation;

            // Try to get duplicated frame within given time
            duplicatedOutput.AcquireNextFrame(10000, out duplicateFrameInformation, out var screenResource);
            pointerPos = duplicateFrameInformation.PointerPosition.Position;
            return(screenResource);
        }
예제 #2
0
 public static unsafe void Callivoid120(void *thisObject, SharpDX.Mathematics.Interop.RawPoint arg0, void *methodPtr)
 {
     throw new NotImplementedException();
 }
예제 #3
0
 public static unsafe int Calliint121(void *thisObject, void *arg0, void *arg1, SharpDX.Mathematics.Interop.RawPoint arg2, void *methodPtr)
 {
     throw new NotImplementedException();
 }
예제 #4
0
 /// <summary>	
 /// <p>Returns information about the placement and orientation of a glyph in a character cell.</p>	
 /// </summary>	
 /// <param name="glyph"><dd>  <p>Glyph identifier.</p> </dd></param>	
 /// <param name="textureOut"><dd>  <p>Address of a reference to a <strong><see cref="SharpDX.Direct3D9.Texture"/></strong> object that contains the glyph.</p> </dd></param>	
 /// <param name="blackBoxRef"><dd>  <p>Pointer to the smallest rectangle object that completely encloses the glyph.</p> </dd></param>	
 /// <param name="cellIncRef"><dd>  <p>Pointer to the two-dimensional vector that connects the origin of the current character cell to the origin of the next character cell. See <strong><see cref="SharpDX.Mathematics.Interop.RawPoint"/></strong>.</p> </dd></param>	
 /// <returns><p>If the method succeeds, the return value is <see cref="SharpDX.Result.Ok"/>. If the method fails, the return value can be one of the following: <see cref="SharpDX.Direct3D9.ResultCode.InvalidCall"/>, D3DXERR_INVALIDDATA.</p></returns>	
 /// <include file='.\..\Documentation\CodeComments.xml' path="/comments/comment[@id='ID3DXFont::GetGlyphData']/*"/>	
 /// <msdn-id>bb173966</msdn-id>	
 /// <unmanaged>HRESULT ID3DXFont::GetGlyphData([In] unsigned int Glyph,[Out] IDirect3DTexture9** ppTexture,[Out] RECT* pBlackBox,[Out] POINT* pCellInc)</unmanaged>	
 /// <unmanaged-short>ID3DXFont::GetGlyphData</unmanaged-short>	
 public void GetGlyphData(int glyph, out SharpDX.Direct3D9.Texture textureOut, out SharpDX.Mathematics.Interop.RawRectangle blackBoxRef, out SharpDX.Mathematics.Interop.RawPoint cellIncRef) {
     unsafe {
         IntPtr textureOut_ = IntPtr.Zero;
         blackBoxRef = new SharpDX.Mathematics.Interop.RawRectangle();
         cellIncRef = new SharpDX.Mathematics.Interop.RawPoint();
         SharpDX.Result __result__;
         fixed (void* blackBoxRef_ = &blackBoxRef)
             fixed (void* cellIncRef_ = &cellIncRef)
                 __result__= 
 				SharpDX.Direct3D9.LocalInterop.Calliint(_nativePointer, glyph, &textureOut_, blackBoxRef_, cellIncRef_,((void**)(*(void**)_nativePointer))[9]);		
         textureOut= (textureOut_ == IntPtr.Zero)?null:new SharpDX.Direct3D9.Texture(textureOut_);	
         __result__.CheckError();
     }
 }