Windows Cursor, D3D(NOT SPRIDES!)

Posts 1–15 of 17 · Page 1 of 2
Windows Cursor, D3D(NOT SPRIDES!)
Yeah!!!!
i made the Windows Cursor in D3D

it was fucking hard to get the right colors >.<

look

fuck... my browser not loaded fast enough... but the server is the most time full and need more time... Minion, please move, thank u for the info about wrong section
If you really did that with D3D, I give you props. Using a sprite would be so much easier lol.
There's a function for that.. I think..
HRESULT IDirect3DDevice9::SetCursorProperties(
UINT XHotSpot,
UINT YHotSpot,
IDirect3DSurface9 * pCursorBitmap
);

It ain't that hard.

And here are the remarks.

An operating system cursor is created and used under either of these conditions:
The hardware has set D3DCURSORCAPS_COLOR (see D3DCURSORCAPS), and the cursor size is 32x32 (which is the cursor size in the operating system).
The application is running in windowed mode.

Otherwise, DirectX uses an emulated cursor. An application uses IDirect3DDevice9::SetCursorPosition to move an emulated cursor to follow mouse movement.

It is recommended for applications to always trap WM_MOUSEMOVE events and call DXSetCursorPosition.

Direct3D cursor functions use either GDI cursor or software emulation, depending on the hardware. Users typically want to respond to a WM_SETCURSOR message. For example, they might want to write the message handler as follows:

case WM_SETCURSOR:
// Turn off window cursor.
SetCursor( NULL );
m_pd3dDevice->ShowCursor( TRUE );
return TRUE; // Prevent Windows from setting cursor to window class cursor.
break;

Or, users might want to call the IDirect3DDevice9::SetCursorProperties method if they want to change the cursor.

The application can determine what hardware support is available for cursors by examining appropriate members of the D3DCAPS9 structure. Typically, hardware supports only 32x32 cursors and, when windowed, the system might support only 32x32 cursors. In this case, IDirect3DDevice9::SetCursorProperties still succeeds but the cursor might be reduced to that size. The hot spot is scaled appropriately.

The cursor does not survive when the device is lost. This method must be called after the device is reset.
Quote Originally Posted by freedompeace View Post
HRESULT IDirect3DDevice9::SetCursorProperties(
UINT XHotSpot,
UINT YHotSpot,
IDirect3DSurface9 * pCursorBitmap
);

It ain't that hard.

And here are the remarks.
Ooooohh nice I didn't know about that function. I thought OP manually drew the lines/fill.
HAhahah that's pro man!
ThaThar ye go...
/Moved to Coding Help & Discussion section .
Wow freedom, didn't know that existed. That sure makes this a lot easier.
Quote Originally Posted by Void View Post
Wow freedom, didn't know that existed. That sure makes this a lot easier.
Void sir, why have you been banned? S:
Quote Originally Posted by freedompeace View Post
Void sir, why have you been banned? S:
cause he reached 2000 posts
Quote Originally Posted by kotentopf View Post
cause he reached 2000 posts
You get banned for that? ._.

What other (crazy) things do you get banned for here?
Quote Originally Posted by freedompeace View Post
You get banned for that? ._.

What other (crazy) things do you get banned for here?
At 1337, 2000, 3000, etc. posts you get banned for a few days. I think that it's so that you can get away from MPGH for a few days.
Posts 1–15 of 17 · Page 1 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us