00001 #ifndef GLUTWACOM_IS_INCLUDED
00002 #define GLUTWACOM_IS_INCLUDED
00003
00004 #include <GL/glut.h>
00005
00006
00007 #define GLUT_WACOM_NO_BUTTON 0
00008 #define GLUT_WACOM_BOTTOM_BUTTON 1
00009 #define GLUT_WACOM_TOP_BUTTON 2
00010 #define GLUT_WACOM_TOP_LEFT_BUTTON 3
00011 #define GLUT_WACOM_TOP_MIDDLE_BUTTON 4
00012 #define GLUT_WACOM_TOP_RIGHT_BUTTON 5
00013 #define GLUT_WACOM_BOTTOM_RIGHT_BUTTON 6
00014 #define GLUT_WACOM_BOTTOM_LEFT_BUTTON 7
00015
00016
00017 #define GLUT_WACOM_DOWN 0
00018 #define GLUT_WACOM_UP 1
00019
00020
00021 #define GLUT_WACOM_NO_STATE_INFO -1
00022 #define GLUT_WACOM_STATE_OFF_TABLET 0
00023 #define GLUT_WACOM_STATE_ON_TABLET 1
00024
00025
00026 #define GLUT_WACOM_NO_PROXIMITY_INFO -1
00027 #define GLUT_WACOM_PROXIMITY_OUT 0
00028 #define GLUT_WACOM_PROXIMITY_IN 1
00029
00030 #define GLUT_HAS_WACOM_TABLET 617
00031 #define GLUT_HAS_WACOM_STYLUS 618
00032 #define GLUT_HAS_WACOM_ERASER 619
00033 #define GLUT_HAS_WACOM_CURSOR 620
00034 #define GLUT_NUM_WACOM_TABLET_BUTTONS 621
00035 #define GLUT_NUM_WACOM_STYLUS_BUTTONS 622
00036 #define GLUT_NUM_WACOM_ERASER_BUTTONS 623
00037 #define GLUT_NUM_WACOM_CURSOR_BUTTONS 624
00038 #define GLUT_WACOM_TABLET_XCOORD_MIN 625
00039 #define GLUT_WACOM_TABLET_XCOORD_RANGE 626
00040 #define GLUT_WACOM_TABLET_YCOORD_MIN 627
00041 #define GLUT_WACOM_TABLET_YCOORD_RANGE 628
00042 #define GLUT_WACOM_TABLET_PRESSURE_MIN 629
00043 #define GLUT_WACOM_TABLET_PRESSURE_RANGE 630
00044 #define GLUT_WACOM_TABLET_XTILT_MIN 631
00045 #define GLUT_WACOM_TABLET_XTILT_RANGE 632
00046 #define GLUT_WACOM_TABLET_YTILT_MIN 633
00047 #define GLUT_WACOM_TABLET_YTILT_RANGE 634
00048 #define GLUT_WACOM_STYLUS_XCOORD_MIN 635
00049 #define GLUT_WACOM_STYLUS_XCOORD_RANGE 636
00050 #define GLUT_WACOM_STYLUS_YCOORD_MIN 637
00051 #define GLUT_WACOM_STYLUS_YCOORD_RANGE 638
00052 #define GLUT_WACOM_STYLUS_PRESSURE_MIN 639
00053 #define GLUT_WACOM_STYLUS_PRESSURE_RANGE 640
00054 #define GLUT_WACOM_STYLUS_XTILT_MIN 641
00055 #define GLUT_WACOM_STYLUS_XTILT_RANGE 642
00056 #define GLUT_WACOM_STYLUS_YTILT_MIN 643
00057 #define GLUT_WACOM_STYLUS_YTILT_RANGE 644
00058 #define GLUT_WACOM_ERASER_XCOORD_MIN 645
00059 #define GLUT_WACOM_ERASER_XCOORD_RANGE 646
00060 #define GLUT_WACOM_ERASER_YCOORD_MIN 647
00061 #define GLUT_WACOM_ERASER_YCOORD_RANGE 648
00062 #define GLUT_WACOM_ERASER_PRESSURE_MIN 649
00063 #define GLUT_WACOM_ERASER_PRESSURE_RANGE 650
00064 #define GLUT_WACOM_ERASER_XTILT_MIN 651
00065 #define GLUT_WACOM_ERASER_XTILT_RANGE 652
00066 #define GLUT_WACOM_ERASER_YTILT_MIN 653
00067 #define GLUT_WACOM_ERASER_YTILT_RANGE 654
00068 #define GLUT_WACOM_CURSOR_XCOORD_MIN 655
00069 #define GLUT_WACOM_CURSOR_XCOORD_RANGE 656
00070 #define GLUT_WACOM_CURSOR_YCOORD_MIN 657
00071 #define GLUT_WACOM_CURSOR_YCOORD_RANGE 658
00072 #define GLUT_WACOM_CURSOR_PRESSURE_MIN 659
00073 #define GLUT_WACOM_CURSOR_PRESSURE_RANGE 660
00074 #define GLUT_WACOM_CURSOR_XTILT_MIN 661
00075 #define GLUT_WACOM_CURSOR_XTILT_RANGE 662
00076 #define GLUT_WACOM_CURSOR_YTILT_MIN 663
00077 #define GLUT_WACOM_CURSOR_YTILT_RANGE 664
00078
00079
00080 #define GLUT_WACOM_CURSOR 0
00081 #define GLUT_WACOM_STYLUS 1
00082 #define GLUT_WACOM_ERASER 2
00083 #define GLUT_WACOM_MENU 16
00084
00085
00086 #if !defined(_WIN32)
00087 #define APIENTRY
00088 #define GLUT_APIENTRY_DEFINED
00089 #define CALLBACK
00090 #endif
00091
00092 #ifdef __cplusplus
00093 extern "C" {
00094 #endif
00095
00096 extern void APIENTRY glutInitWacom(void);
00097
00098 extern void APIENTRY glutMoveFunc(void (*func)(int x, int y));
00099
00100 extern void APIENTRY glutWacomMotionFunc(void (*func)(int device, int tablet_state, float x, float y, float pressure, float xtilt, float ytilt, int proximity));
00101 extern void APIENTRY glutWacomButtonFunc(void (*func)(int device, int button, int state, int tablet_state, float x, float y, float pressure, float xtilt, float ytilt, int proximity));
00102
00103 #ifdef __cplusplus
00104 }
00105 #endif
00106
00107 #endif // GLUTWACOM_IS_INCLUDED