Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1017 B

  1. #include <windows.h>
  2. #include "stonerc.h"
  3. #pragma warning (disable : 4244)
  4. #define M_PI 3.1415926
  5. typedef HWND Widget;
  6. typedef VOID *XtPointer;
  7. typedef BOOL Boolean;
  8. typedef UINT Dimension;
  9. #define WINDSIZEX(Rect) (Rect.right - Rect.left)
  10. #define WINDSIZEY(Rect) (Rect.bottom - Rect.top)
  11. #define WM_INIT WM_USER
  12. typedef struct
  13. {
  14. int button;
  15. int x;
  16. int y;
  17. }XButton;
  18. typedef struct
  19. {
  20. int x;
  21. int y;
  22. }XMotion;
  23. typedef struct
  24. {
  25. int type;
  26. XButton xbutton;
  27. XMotion xmotion;
  28. } XEvent;
  29. typedef struct
  30. {
  31. int reason;
  32. XEvent *event;
  33. Dimension width, height; /* for resize callback */
  34. } GLwDrawingAreaCallbackStruct;
  35. /*
  36. ** RGB Image Structure
  37. */
  38. typedef struct _RGBImageRec {
  39. GLint sizeX, sizeY;
  40. unsigned char *data;
  41. } RGBImageRec;
  42. #define Button1 1
  43. #define Button2 2
  44. #define ButtonPress 1
  45. #define ButtonRelease 2
  46. #define MotionNotify 3
  47. RGBImageRec *RGBImageLoad(char *);
  48. #define TK_RGBImageRec RGBImageRec
  49. #define tkRGBImageLoad RGBImageLoad