-
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?
-
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.
-
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.
-
Hmmm
I've tried everything with CreateCubeTexture, and it still doesn't work!! Wheres a good tut for Direct Input?