BytePtr
November 20th, 2009, 06:42 AM
Here is video about example:
http://www.youtube.com/watch?v=cmcnIWN6y2Y
I would like to do same thing. But in plain 2D.
So i need just draw simple fixed size rectangles with mouse.
It could be made using OpenGL (better for me) or using GDI. This is not so important at the moment. But it should work on simple GRID that i also draw. The cells will have same width and height.
Where should i start?
Let's take simple rectangle, i can draw one. But what about the next? When im holding mouse down and dragging the program should draw rectangles just like in video.
But just plain 2D rectangles.
Draw one rect, remember it's position then whenever mouse moves away from it to next rect in grid draw another rect in there and so on?
Or what?
Maybe somebody knows similar example that could be downloaded or examined?
Thanks.
http://www.youtube.com/watch?v=cmcnIWN6y2Y
I would like to do same thing. But in plain 2D.
So i need just draw simple fixed size rectangles with mouse.
It could be made using OpenGL (better for me) or using GDI. This is not so important at the moment. But it should work on simple GRID that i also draw. The cells will have same width and height.
Where should i start?
Let's take simple rectangle, i can draw one. But what about the next? When im holding mouse down and dragging the program should draw rectangles just like in video.
But just plain 2D rectangles.
Draw one rect, remember it's position then whenever mouse moves away from it to next rect in grid draw another rect in there and so on?
Or what?
Maybe somebody knows similar example that could be downloaded or examined?
Thanks.