|
-
Apr 3rd, 2005, 04:06 PM
#1
Using DirectX for form GUIs?
Is it possible to use DirectX for a form GUI? For example, command buttons, text displays, etc.?
-
Apr 3rd, 2005, 04:31 PM
#2
Re: Using DirectX for form GUIs?
nope. i don't think so. what you draw in dx stays in dx. i don't know if you can have interaction in dx with vb controls. i've never seen it at least.
-
Apr 3rd, 2005, 04:46 PM
#3
Re: Using DirectX for form GUIs?
What you do is create your own controls in DirectX. You do some code to draw a picture of your object, like for example, your very own look of a command button (which can be anything you want, whether in 2D or even 3D). Next you do some code to find out where your mouse is using DirectInput in order to see if it's within the boundries of your new command button. In 3D you would have to use the D3DXVec3Project to convert the 3D coordinates to screen coordinates and test that. Next, you use DirectInput to see if the user clicked within that boundry. If he has, you make it animate looking as though you pushed down on the button, and animate when the user releases the button. Then you do some code for whatever action that button does.
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
|