Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Direct3D9 clipping/drawing problems, and a Win32 question

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

Hi All Im new to direct3d, so im not sure how to fix this. Im trying to create a little level editor using direct3d to render in perspective view. However direct3d keeps drawing over my toolbar and statusbar controls, how would i fix this? Also how would I set direct3d''s equivalent of opengl''s viewport. Since ill be having 4 viewports (top/right/front/perspective) id like direct3d to draw in a certain 1/4 of my window. Lastly, the Win32 question I have is how would I split my main window into "viewports"? Ive done it in MFC but have no idea how to do it in pure Win32. Do I create child windows? Please Help and Thanks Alot

Share this post

Link to post
Share on other sites
pDevice->SetViewport(), look in the docs for info on how to use it. You can setup the offset and size of your viewport just like OpenGL.

So you can do this:
for (each viewport, i)



Share this post

Link to post
Share on other sites

  • 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!