Jump to content
  • Advertisement
Sign in to follow this  
xXShadowAsasNXx

Game Engine Question

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

Well, I am creating a game engine and i need to use Directx with the win32 api, but I am not sure how I would do this. For example, i have a level editor which uses win32 for the gui and directx for the actual level creation... How would I do this! Also, if you have any suggestions for the name of my game engine, please tell me.

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by xXShadowAsasNXx
Also, if you have any suggestions for the name of my game engine, please tell me.


I think the name will be the least of your problems. Just pick a working title and stick with it until you have something that works.

Share this post


Link to post
Share on other sites
Basically, all you have to do is pass in the HWND of the window/control that you want to render to to directx and that's it. Look at Tutorial1/2 in the sdk, it'll show you how to set up directx and a basic win32 message loop.

For multiple viewports/windows, you'll have to set up multiple swap chains.

All of the regular win32 buttons/menus/etc should all just work as they normally do in win32.

You can also, if you prefer, have a managed c++ or c# layer on top of your engine and use WinForms or WPF if you want.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!