Results 1 to 4 of 4

Thread: [HELP]mouse clicking over to change shape

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2011
    Posts
    5

    [HELP]mouse clicking over to change shape

    I have a program display a shape of rectangle, and i want add another features which is it accepts input from the mouse and if right clicks the mouse, with the mouse over the rectangle, will turn the rectangle into a diamond.

  2. #2
    Senior Member OpenGL Pro BionicBytes's Avatar
    Join Date
    Mar 2009
    Location
    UK, London
    Posts
    1,161

    Re: [HELP]mouse clicking over to change shape

    yes and....
    Which part are you having problems with?
    What have you tried so far, and what was the result or error produced?
    What references have you read? What URL did you follow in Google?

  3. #3
    Junior Member Newbie
    Join Date
    Sep 2011
    Posts
    6

    Re: [HELP]mouse clicking over to change shape

    here i am sending you a simpler tutorial on callback events.
    hope this will help you.

    http://www.filefactory.com/file/cffa...backs_2011.pdf

    NOTE: ignore point # 4

  4. #4
    Junior Member Newbie
    Join Date
    Nov 2011
    Posts
    5

    Re: [HELP]mouse clicking over to change shape

    ok, i know how to solve my problem, but now i'm confuse with the mouse motion event handler, as i know the function is
    void mouseMotion (int x, int y)

    but what i'm not understand is what i need to set inside the function when the shape is being move as i know the position are the main consideration into.

Similar Threads

  1. Replies: 1
    Last Post: 07-24-2014, 04:59 PM
  2. 2D Mouse Clicking
    By Snickers in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 08-20-2009, 12:37 PM
  3. draw curves by clicking mouse
    By wieju in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 03-16-2006, 09:25 AM
  4. optical mouse keeps double clicking
    By nancy2394 in forum OpenGL: User Software
    Replies: 1
    Last Post: 03-26-2003, 10:42 AM
  5. Mouse Clicking Help Me!!!!!!!!!!!!
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 01-15-2002, 11:28 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean