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

Thread: lookup table

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2001
    Location
    Hattiesburg, MS, U.S.A
    Posts
    16

    lookup table

    Hi, I want to adjust the lookup table based on the position of the mouse when the middle button is pressed, can anybody tell me how to do it?
    especially the formula to generate the lookup table based on the position of the mouse.
    thank you very much.

  2. #2
    Member Regular Contributor
    Join Date
    Jul 2002
    Location
    Austria
    Posts
    280

    Re: lookup table

    Lol, what kind of question is that?

    You're trying to say you don't know how to generate the "almighty lookup table" (tm) from the mouse position? Shame one you

    Sarcasm aside...unless you're being more specific, I doubt anybody here can help you.
    XEngine - The Platform- and API-Independent 3D Engine
    with Programmable Pipeline Support: [URL=http://xengine.sourceforge.net
    My]http://xengine.sourceforge.net

  3. #3
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    The Round Table at Camelot
    Posts
    1,537

    Re: lookup table

    This is not an OpenGL question (not even advanced for that matter), but a basic windows programming question. Well it can be done w/ linux too but I wouldn't know anything about that. All you do is in your Windows Procedure function, detect when you get the 'middle mouse button down' message and retrieve the mouse position with whatever function does that. I forget exactly which function it is. GetCursorPos or something like that. Try going to the MSDN database.

    -SirKnight

    [This message has been edited by SirKnight (edited 11-22-2002).]
    -SirKnight

Posting Permissions

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