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: pointing the sprite at the cursor coords

  1. #1
    Junior Member Newbie
    Join Date
    Oct 2003
    Location
    Siera-Lionne, Diamond Field Town
    Posts
    24

    pointing the sprite at the cursor coords

    Hello! I have a textured quad on the screen at 100,100, how can I rotate it to make it point at the cursor? I have cursor coords in m_mousex and m_mousey. Please, help!

  2. #2
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,655

    Re: pointing the sprite at the cursor coords

    This is not opengl, this is maths.

Posting Permissions

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