-->

GLUT Tutorial – How to detect a Mouse Click and Mouse Motion

GLUT Tutorial – How to detect a Mouse Click and Mouse Motion
    In previous tutorial, we discussed about handling Keyboard event using GLUT. In this tutorial we pay our close attention towards Detecting Mouse click and Mouse motion.
    Detecting Mouse Click
    GLUT provides a function glutMouseFunc which is responsible for detecting mouse click generated by a program. Its syntax is
    void glutMouseFunc(void (*func)(int button, int state, int x, int y));
    Where,
    Read more »
    fardi zayden
    @مرسلة بواسطة
    كاتب ومحرر اخبار اعمل في موقع دراسات تقنية .

    إرسال تعليق