CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 2 of 2 FirstFirst 12
Results 16 to 17 of 17
  1. #16
    Join Date
    Aug 2000
    Location
    West Virginia
    Posts
    7,721

    Re: Freeglut problems.

    Code:
    void MouseFunc( int button , int state , int x , int y)
    {
        if (button == GLUT_LEFT_BUTTON)
        {
            if (state == GLUT_DOWN)
            {
                //
            }
    
            if (state == GLUT_UP)
            {
                //
            }
        }
    }
    
    // then after glutInit()
    glutMouseFunc(MouseFunc);

  2. #17
    Join Date
    Sep 2011
    Posts
    25

    Re: Freeglut problems.

    Quote Originally Posted by Philip Nicoletti View Post
    Code:
    void MouseFunc( int button , int state , int x , int y)
    {
        if (button == GLUT_LEFT_BUTTON)
        {
            if (state == GLUT_DOWN)
            {
                //
            }
    
            if (state == GLUT_UP)
            {
                //
            }
        }
    }
    
    // then after glutInit()
    glutMouseFunc(MouseFunc);

    Thank you.

Page 2 of 2 FirstFirst 12

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured