Jump to content
  • Advertisement
Sign in to follow this  
supagu

engine running in c# application

This topic is 4815 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 wanna make a c# mesh viewer, so what ive done is to use swig to generate a wrapper for my c++ native dll. Now in c# i open a window of my engine, get the window handle so i can move it around when the c# form window moves. This is not optimal as my engine window lags around and doesnt want to resize :-/ it also has the minimize/close title bar up the top still. does any one have any ideas with a work around? maybe a better solution? cheers

Share this post


Link to post
Share on other sites
Advertisement
It would probably be better if you create your C# form, and pass the handle from that, or any child window you want to render in, to your C++ renderer (would be an HWND in the background).

If your renderer automatically spawns a window, you might want to separate that window creation and the initialisation of your renderer.

Share this post


Link to post
Share on other sites
You could optionally place a picture box in the Windows form and than send the handle of the picture box which is what I do with my world builder.

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!