Joined: Tue Aug 23, 2011 5:03 pm Posts: 1
|
I have got the Preview example running using GDI+. I have no experience with winforms etc and have always done my projects in XNA game studio (which is just a graphics and input library). I have tried to get the example running in an C# XNA project but don't really know how to get it to run;
Preview example:
static void Main() { Renderer renderer = new Renderer(); PreviewForm form = new PreviewForm(); form.RenderEvent = new PagePreview.RenderEvent(renderer.Render); Application.Run(form); }
I would like it to run in the XNA GraphicsDevice Class
public Game1() { graphics = new GraphicsDeviceManager(this); } protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. spriteBatch = new SpriteBatch(GraphicsDevice); } protected override void Draw(GameTime gameTime) {
base.Draw(gameTime); }
Thanks
|
|