Jump to content
  • Advertisement
Sign in to follow this  
cyberlorddan

In what handles can DirectX render?

This topic is 2972 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'm working on the GUI for a level editor, and so far I've rendered the 3D stuff in the whole window. From my experience with Managed DirectX, if I add a button in the window that directx renders to, that button will appear jaggy.

Now I'm working with the native API and I was wondering in what handles I could render to (like can you render to a button or to the main menu?).

Also, which is the one that I should use? Basicly I want to render to a variable region of my window.

Thx in advice, and for reading my post :P

Share this post


Link to post
Share on other sites
Advertisement
Need a bit more information. Which API? Are you rendering a sprite, a textured quad, a sub-classed button? Are you rendering to a surface or the backbuffer?

Can you explain what you mean by "handles?"
Quote:
Basicly I want to render to a variable region of my window.

Generally speaking, you don't render to a window. You render to the backbuffer and present the backbuffer to the window. I'm not trying to be picky; I just want to make sure we understand the same terms.

In DX9, you can set a viewport to any portion of the backbuffer, clear it and render to it.

Share this post


Link to post
Share on other sites
Basically you can render to any HWND. But most common controls will interfere in that they try to do their normal painting as well.

Usually you create a new window class for your purpose and use a HWND of it.

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!