#include "stonerc.h"
#pragma warning (disable : 4244)
#define M_PI 3.1415926
typedef HWND Widget;
typedef VOID *XtPointer;
typedef BOOL Boolean;
typedef UINT Dimension;
#define WINDSIZEX(Rect) (Rect.right - Rect.left)
#define WINDSIZEY(Rect) (Rect.bottom - Rect.top)
#define WM_INITWM_USER
typedef struct
{
intbutton;
int x;
int y;
}XButton;
typedef struct
{
intx;
inty;
}XMotion;
typedef struct
{
int type;
XButton xbutton;
XMotion xmotion;
} XEvent;
typedef struct
{
int reason;
XEvent *event;
Dimension width, height;/* for resize callback */
} GLwDrawingAreaCallbackStruct;
/*
** RGB Image Structure
*/
typedef struct _RGBImageRec {
GLint sizeX, sizeY;
unsigned char *data;
} RGBImageRec;
#define Button11
#define Button22
#define ButtonPress1
#define ButtonRelease2
#defineMotionNotify3
RGBImageRec *RGBImageLoad(char *);
#define TK_RGBImageRec RGBImageRec
#define tkRGBImageLoad RGBImageLoad