Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: elastic rectangle for selection

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2014
    Posts
    7

    elastic rectangle for selection

    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

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jan 2012
    Location
    Australia
    Posts
    1,117
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •