PDA

View Full Version : how to get teh gripper for images in OpenGL



rakesh_thp
07-17-2009, 11:28 PM
Hello there,

I am able to load an image file in the GLCanvas. And am also able to move it.. But i need to display a gripper ( some thing that is displayed at the four corners of the image when selected) .. Once this gripper get displayed, then it should be possible for me to scale, rotate or move depending on what tool on the gripper is used.

Like for example, once i select an image, it should display four tools at four different corners, one corner to scale, one to rotate, one to move and another again to scale/rotate/move..

How do i get this thing to work..?? i just want that, once i click on any of the image, it should first display gripper, and then it should allow me to perform various transformations...

Thanks in advance

earthquad
07-18-2009, 08:15 AM
i don't think this is gl related but you could look at an existing ui to see how they handle it (no pun intended).

awhig
07-18-2009, 02:16 PM
I do not know whether this would help. So basically you want to display some mark at corners that represents your holder or gripper.

If so , then just increase the corner vertex size using glPointSize();