PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
PDF sharp with Microsoft XNA game studio? https://forum.pdfsharp.net/viewtopic.php?f=2&t=1751 |
Page 1 of 1 |
Author: | blooop [ Tue Aug 23, 2011 5:22 pm ] |
Post subject: | PDF sharp with Microsoft XNA game studio? |
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 |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |