Results 1 to 4 of 4

Thread: 2 Questions

  1. #1

    Thread Starter
    Addicted Member Cuallito's Avatar
    Join Date
    Apr 2001
    Location
    You know that chest that you could never get opened? If you ever do, I'm there.
    Posts
    136

    2 Questions

    1) How do you get your cursor that you made for your D3D application to show? Rightnow im doing:

    Code:
    Set Cursor = Device.CreateImageSurface(32, 32, D3DFMT_A8R8G8B8)
    D3DX.LoadSurfaceFromFile Cursor, ByVal 0, ByVal 0, "C:\Eric\Cursor", ByVal 0, 2, D3DColorARGB(&HFF&, 0, 255, 255), ByVal 0
    Device.SetCursorProperties 1, 1, Cursor
    But the cursor doesn't show up!
    2) Can someone show me some arguments to Device.CreateCubeTexture that do not cause an error!? This line causes an error:
    Code:
    Set Highlight = Device.CreateCubeTexture(64,1,D3DUSAGE_DEPTHSTENCIL, D3DFMT_A8R8G8B8, D3DPOOL_MANAGED)
    Why?
    BTW, Thanks for all your help

    Member of the anti-gay cross-dressing trans-species wolves alliance.

  2. #2
    Zaei
    Guest
    For the first question, Your hardware probably doesnt support Cursors. Check the DX Caps viewer (in the DirectX utilites folder in your start menu).

    FOr the second, you may want to try D3DPOOL_DEFAULT.

  3. #3
    Fanatic Member PsychoMark's Avatar
    Join Date
    Feb 2001
    Location
    Netherlands
    Posts
    540
    1) Your code looks like DX8. I don't know much about it, but you could do what I always do with DX7: Use DirectInput and draw the cursor yourself.
    Teaudirenopossum.Musasapientumfixaestinaure.
    (I can't hear you. There's a banana in my ear)

  4. #4

    Thread Starter
    Addicted Member Cuallito's Avatar
    Join Date
    Apr 2001
    Location
    You know that chest that you could never get opened? If you ever do, I'm there.
    Posts
    136

    Hmmm

    I've tried everything with CreateCubeTexture, and it still doesn't work!! Wheres a good tut for Direct Input?
    BTW, Thanks for all your help

    Member of the anti-gay cross-dressing trans-species wolves alliance.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width