PDA

View Full Version : elastic rectangle for selection



ensberg
02-25-2014, 09:49 AM
Good morning


a have a plane surface in 2d and many Points in this plane , i want to create a elastic rectangle who enable me to selecta points.

elastic rectangle like that of paint

thank you

tonyo_au
02-25-2014, 03:37 PM
A easy way to do this is to capture the current screen to a texture; then repeatedly draw this texture as a background with the rectangle on top until the mouse up event.