Results 1 to 7 of 7

Thread: Changing mouse cursors

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2002
    Posts
    11

    Changing mouse cursors

    Does anybody know how to change the mouse cursor image depending on the location on the screen? I am developing a 3D modeller using C++ and OpenGL and dont really want to touch windows programming if i can help it.

    I want to use the same trick as 3D Studio MAX and have a mouse cursor for rotation, translation etc...

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Jun 2000
    Location
    Gastonia, NC, USA
    Posts
    2,068

    Re: Changing mouse cursors

    If you are using GLUT, then you can use glutSetCursor. There is a selection of about 12 diffrent cursors to choose from.


    Originally posted by Gobbo:
    Does anybody know how to change the mouse cursor image depending on the location on the screen? I am developing a 3D modeller using C++ and OpenGL and dont really want to touch windows programming if i can help it.

    I want to use the same trick as 3D Studio MAX and have a mouse cursor for rotation, translation etc...

  3. #3
    Junior Member Newbie
    Join Date
    Feb 2002
    Posts
    11

    Re: Changing mouse cursors

    Thanks, your the man!

  4. #4
    Junior Member Newbie
    Join Date
    Feb 2002
    Posts
    11

    Re: Changing mouse cursors

    Dont suppose you know how to define your own cursors at all do you?

  5. #5
    Senior Member OpenGL Guru
    Join Date
    Jun 2000
    Location
    Gastonia, NC, USA
    Posts
    2,068

    Re: Changing mouse cursors

    I don't think you can change the glut cursors, but away around would be to make you own cursors by maping them to a quad, and have the quad follow the mouse.

    Originally posted by Gobbo:
    Dont suppose you know how to define your own cursors at all do you?

  6. #6
    Junior Member Newbie
    Join Date
    May 2002
    Location
    Santiago , Chile
    Posts
    1

    Re: Changing mouse cursors

    How can you hide the cursor?

  7. #7
    Senior Member OpenGL Guru
    Join Date
    Jun 2000
    Location
    Gastonia, NC, USA
    Posts
    2,068

    Re: Changing mouse cursors

    The glutSetCursor function also provides an option to turn off the cursor.

    Originally posted by cix:
    How can you hide the cursor?


    [This message has been edited by nexusone (edited 05-09-2002).]

Similar Threads

  1. Mouse view changing
    By t3jem in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 06-13-2005, 10:45 AM
  2. changing view with mouse
    By link664 in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 05-09-2005, 05:25 AM
  3. Cursors
    By Sam Kovalev in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 11-13-2004, 12:16 PM
  4. Custom cursors
    By in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 01-27-2004, 06:18 AM
  5. Manually Changing Mouse Location
    By swrittenb in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 11-28-2003, 05:46 AM

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