How to draw XNA window inside a panel?
I'm d开发者_Python百科eveloping a 3d Viewer in vb.net and xna. It's working very well. I have now a windows form and an xna render window, but I would like to render it inside a panel in the windows form. I have searched for info, but it's so hard to adapt it into my application. How can I do it?
alt text http://img299.imageshack.us/img299/384/87117064.jpg
Here is the application.
IMO, you should keep it separate. It is so much easier because you don't have to worry about managing the graphics device. However if you must know, you can find the winforms series on the xna creator's club site. it shows you how to render to a winforms panel
- http://creators.xna.com/en-US/sample/winforms_series1
- http://creators.xna.com/en-US/sample/winforms_series2
精彩评论