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 4 of 4

Thread: program that draws a erasable rectangle based on the movement of the mouse

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2017
    Posts
    8

    program that draws a erasable rectangle based on the movement of the mouse

    the program that draws an erasable rectangle based on the movement of the mouse using logic operation and finally rectangle should be displayed when there is no movement of mouse ... can u plz help me with this ?? give me an idea how to do it ??or even sorce code if possible plz

  2. #2
    Senior Member OpenGL Guru Dark Photon's Avatar
    Join Date
    Oct 2004
    Location
    Druidia
    Posts
    3,983
    Is this an assignment? If so, your instructor has probably given you guidelines for implementing this.

    One of many possible ways you could do this is with GLUT. Check out it's mouse motion and mouse button callbacks.

  3. #3
    Junior Member Newbie
    Join Date
    Apr 2017
    Posts
    8

    thank you!!can u just help with motion mouse function

    yes its an assignment question. he didnt instruct us he told us to search in the internet and do. so can u help me with mouse motion function plzz please type the motion function or explain me how to do it or give an idea!!thanks

  4. #4
    Senior Member OpenGL Guru Dark Photon's Avatar
    Join Date
    Oct 2004
    Location
    Druidia
    Posts
    3,983
    Just websearch either of those callback registration functions in combination with the word "tutorial" and you'll come up with information and sample code you can use.

Posting Permissions

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