Sign in to follow this  

In what handles can DirectX render?

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

This topic is 2667 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this