This section is for releases only, read: https://www.mpgh.net/forum/207-combat...5-section.html
If it's not a "Source Code Section" release, post there: Coding Help & Discussion - MPGH - MultiPlayer Game Hacking
Yeah!!!!
i made the Windows Cursor in D3D
it was fucking hard to get the right colors >.<
look
The Internet SHOULD Be Illegal
When you say
"Java is a great programming language because it works on all platforms"
it is just like
"anal sex is great because it works on all genders"
Are YOU a Troll?
This section is for releases only, read: https://www.mpgh.net/forum/207-combat...5-section.html
If it's not a "Source Code Section" release, post there: Coding Help & Discussion - MPGH - MultiPlayer Game Hacking
Last edited by klofee; 10-01-2010 at 04:18 PM.
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
The Internet SHOULD Be Illegal
When you say
"Java is a great programming language because it works on all platforms"
it is just like
"anal sex is great because it works on all genders"
Are YOU a Troll?
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.
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.
The Internet SHOULD Be Illegal
When you say
"Java is a great programming language because it works on all platforms"
it is just like
"anal sex is great because it works on all genders"
Are YOU a Troll?