Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    kotentopf's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    602
    Reputation
    26
    Thanks
    251

    Windows Cursor, D3D(NOT SPRIDES!)

    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?

  2. #2
    klofee's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Posts
    36
    Reputation
    10
    Thanks
    2
    This section is for releases only, read: http://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 05:18 PM.

  3. #3
    kotentopf's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    602
    Reputation
    26
    Thanks
    251
    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?

  4. #4
    LightzOut's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    185
    Reputation
    11
    Thanks
    25
    If you really did that with D3D, I give you props. Using a sprite would be so much easier lol.

  5. #5
    Stephen's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    Engine.exe
    Posts
    4,690
    Reputation
    184
    Thanks
    1,147
    My Mood
    Aggressive
    There's a function for that.. I think..

  6. #6
    freedompeace's Avatar
    Join Date
    Jul 2010
    Gender
    female
    Posts
    3,035
    Reputation
    340
    Thanks
    2,784
    My Mood
    Sad
    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.

  7. #7
    NOOBJr's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    in NOOB
    Posts
    1,426
    Reputation
    112
    Thanks
    693
    HAhahah that's pro man!

  8. #8
    Stephen's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    Engine.exe
    Posts
    4,690
    Reputation
    184
    Thanks
    1,147
    My Mood
    Aggressive
    ThaThar ye go...

  9. #9
    Ali's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    Qc, Canada
    Posts
    11,453
    Reputation
    342
    Thanks
    3,514
    My Mood
    Cool
    /Moved to Coding Help & Discussion section .

  10. #10
    LightzOut's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    185
    Reputation
    11
    Thanks
    25
    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.

  11. #11
    Void's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Inline.
    Posts
    3,193
    Reputation
    205
    Thanks
    1,438
    My Mood
    Mellow
    Wow freedom, didn't know that existed. That sure makes this a lot easier.

  12. #12
    freedompeace's Avatar
    Join Date
    Jul 2010
    Gender
    female
    Posts
    3,035
    Reputation
    340
    Thanks
    2,784
    My Mood
    Sad
    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:

  13. #13
    kotentopf's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    602
    Reputation
    26
    Thanks
    251
    Quote Originally Posted by freedompeace View Post
    Void sir, why have you been banned? S:
    cause he reached 2000 posts
    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?

  14. #14
    freedompeace's Avatar
    Join Date
    Jul 2010
    Gender
    female
    Posts
    3,035
    Reputation
    340
    Thanks
    2,784
    My Mood
    Sad
    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?

  15. #15
    mmbob's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    ja
    Posts
    655
    Reputation
    70
    Thanks
    1,156
    My Mood
    Bitchy
    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.

Page 1 of 2 12 LastLast

Similar Threads

  1. [Info] why is blacks d3d not up here?
    By demon541 in forum WarRock Discussions
    Replies: 4
    Last Post: 04-14-2011, 01:51 PM
  2. MPGH Cursor (Blue) (NOT MY BEST)
    By Timmarus in forum Showroom
    Replies: 8
    Last Post: 02-03-2010, 08:46 PM
  3. CANADIAN D3D NOT WORK?
    By geday in forum Blackshot Hacks & Cheats
    Replies: 1
    Last Post: 05-11-2009, 05:36 AM
  4. V.I.P hack [WRS] VIP d3d (not for sale)
    By .Tryme in forum WarRock - International Hacks
    Replies: 41
    Last Post: 03-18-2009, 12:34 PM
  5. Windows Error will not let CA start
    By craigrobertson in forum Combat Arms Hacks & Cheats
    Replies: 10
    Last Post: 12-18-2008, 04:37 PM