I am completely new to DirectX. But I am using it into my screen capture application. I am capturing the screen using desktop duplication API. Now I want to update the cursor information, instead of the original cursor I want to give custom cursor (custom cursor could be any shape). Please help me out how to do that?
I have PTR_INFO(this contain the position of the pointer, DXGI_OUTDUPL_POINTER_SHAPE_INFO), ID3D11DeviceContext, ID3D11Device and ID3D11Texture2D on which I want to perform this operation.
Thanks in advance.
I found the solution for this. I am trying to explain it below:
First, get the DXGISurface by using:
hr =ID3D11Texture2D->QueryInterface(IID_PPV_ARGS(&lIDXGISurface1)); // ID3D11Texture2D is the catured texture
Next step is to make an object for CURSORINFO to store the information about the cursor: