Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to draw XNA window inside a panel?

Tags:

vb.net

xna

I'm developing 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.

like image 318
leviatan1001 Avatar asked Nov 05 '22 15:11

leviatan1001


1 Answers

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

  1. http://creators.xna.com/en-US/sample/winforms_series1
  2. http://creators.xna.com/en-US/sample/winforms_series2
like image 197
Joel Martinez Avatar answered Nov 15 '22 05:11

Joel Martinez