|
-
May 5th, 2001, 08:55 PM
#1
Thread Starter
Addicted Member
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.
-
May 6th, 2001, 01:12 AM
#2
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.
-
May 6th, 2001, 01:29 AM
#3
Fanatic Member
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)
-
May 6th, 2001, 09:23 AM
#4
Thread Starter
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|