Jump to content
  • Advertisement
Sign in to follow this  

Custom GUI's ? [vc++]

This topic is 4748 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I've seen many games made with DirectX that have textured buttons. Is it possible that they were part of a dialog box? Or were they rendered and tested for clicks on them? Anyway, if they were part of a dialog, how were they textured? I tried with CBitmapButton, but it interfered with DirectX... Any suggestions? [Edited by - Deus Ex Otium on May 21, 2005 10:33:18 PM]

Share this post


Link to post
Share on other sites
Advertisement
These are made manually using DirectX. No dialogs involved.

Unfortunatly I know of no tutorials and I don't use DirectX. But some DirectX people are sure to come and tell you the details.

Basically, it works something like this: In DirectDraw, the GUI would be drawn as sprites over the top of the game.

I'm not sure of the Direct3D specifics, but if it's like OpenGL (which one would assume it is), then it basically involves setting up an orthographic projection matrix, clearing or ignoring the depth buffer, and just drawing textured quads on the screen in the way you want them.

Input, of course, is whatever your application uses. If you get mouse deltas, you just track the cursor position yourself, if you get absolute position, then you just draw your own cursor there.

Share this post


Link to post
Share on other sites
That's what I was afraid of...

Should I post in the game section? (Since this involves DirectX) Or should I wait in this section because it would be too close to double posting?

Share this post


Link to post
Share on other sites
I'd wait here (and try the DirectX forum later if necessay).

You could stary by describing exactly what you need help with. Is it just how to design your code?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!