[fltk.development] Simple map editor

2010-02-16 Thread Dufour
Hello ! I am trying to do a simple single layer map editor like this one : http://www.choosetheforce.com/files/nov13_05/smee14.png How would you do a single layer map editor? Can you give me some piece of advice? I planned to cut the tileset into several images and then put them into buttons.

Re: [fltk.development] Simple map editor

2010-02-16 Thread MacArthur, Ian (SELEX GALILEO, UK)
I am trying to do a simple single layer map editor like this one : http://www.choosetheforce.com/files/nov13_05/smee14.png How would you do a single layer map editor? Can you give me some piece of advice? I'd probably render the whole lot in an fl_offscreen, to be honest, then in the

Re: [fltk.development] Simple map editor

2010-02-16 Thread Dufour
I'd probably render the whole lot in an fl_offscreen, to be honest, then in the display widget's draw method, I'd use=20 fl_copy_offscreen(int x, int y, int w, int h, Fl_Offscreen osrc, int srcx, int srcy) to copy the interesting parts of the offscreen onto the display. Thanks a lot for

Re: [fltk.development] Simple map editor

2010-02-16 Thread imacarthur
On 16 Feb 2010, at 20:12, Dufour wrote: I will use the offset drawing method. It's a part of the tutorial I don't quite understand. Do you have some examples of how you would do that? This thread is off-topic for this forum. This forum is to be used to discuss development of the