Jump to content
  • Advertisement
Sign in to follow this  
jagguy

viewports or not

This topic is 4404 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

q)with a directx c++ program, if you want to have a menu at te bottom, do you have 2 viewports or just draw to the screen at the bottom. If you use 2 viewports i notice a border comes up making it look not so good between the views. Just drawing a menu ontop of a program could be confusing to code, as the bottom area is if for a menu section and the rest is for the desired program. q) how can you enter data in the screen with a directx program 'not dxut' as this is more trouble than its worth.

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by jagguy
q)with a directx c++ program, if you want to have a menu at te bottom, do you have 2 viewports or just draw to the screen at the bottom.

If you use 2 viewports i notice a border comes up making it look not so good between the views. Just drawing a menu ontop of a program could be confusing to code, as the bottom area is if for a menu section and the rest is for the desired program.
Personally, I just render some 2D sprites over the 3D scene. It's simple, and reasonably efficient.

Quote:
Original post by jagguy
q) how can you enter data in the screen with a directx program 'not dxut' as this is more trouble than its worth.
You'd be better of with DXUT. Writing this sort of thing youself isn't fun. You'd want to respond to WM_CHAR and WM_KEYDOWN messages, and render text appropriately in your own control.

Share this post


Link to post
Share on other sites
I can't get dxut to work without using ts framework, I just want to add a text box on a directx/c++ prog, and I can't simply do this. I can't comprimise with the dxut framework by the looks of it.
Unless anyone has simple code to show me how?

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!