Jump to content
  • Advertisement
Sign in to follow this  
Mr_Fhqwhgads

[.net] Draw graphics for GUI

This topic is 4420 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 am wanting to write a custom GUI system for my game. Reason why I want it to be custom is because I need special features built in, and the windows need to be drawn in a special way. How would I go about using textures to draw the seperate parts of the window and make it so the window is resizeable? I am assuming vector graphics, but how can I get those drawn properly in DirectX? Here is my mockup. The actual gui will probably be bigger. :P

Share this post


Link to post
Share on other sites
Advertisement
If you're using textures for the GUI components, then my recommendation would be to use the Sprite class. But that's the easy part, the hard part is designing the GUI system. Do all controls derive from Widget? How will you manage all GUI states in your application? What will you do for user input? How will you keep focus for a widget?

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!