Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Integration with winforms  (Read 3607 times)

0 Members and 1 Guest are viewing this topic.

Radnen

  • Newbie
  • *
  • Posts: 17
    • View Profile
Integration with winforms
« on: August 06, 2011, 01:14:19 am »
Hi I'm making an editor for my SFML.Net game, and I was wondering how one would create a rendering environment in a winforms project?

I'd like to edit the maps in my game and see them at the same time. Presently I'm using GDI+ (paint events) to draw the map, but I feel like I'm reinventing the map drawing.

Is there any way? I didn't see a tutorial here,
Thanks.

Edit:
Basically, I get a LoaderLock issue.

If I were to set a RenderWindow's target as a blank form, it's fine. But if the target is a component, it won't work. See, I need a renderwindow to point to a blank component, why? So that I have a mad editor component nestled in with other components that build up the game editor.

I can't use the main form as the render window, it won't work with the way I've planned things.