/*
Copyright (c) 1999 XFree86 Inc
*/
/* $XFree86: xc/include/extensions/xf86dga.h,v 3.21 2001/08/01 00:44:36 tsi Exp $ */
#ifndef _XF86DGA_H_
#define _XF86DGA_H_
#include <X11/Xfuncproto.h>
#define X_XDGAQueryVersion 0
/* 1 through 9 are in xf86dga1.h */
/* 10 and 11 are reserved to avoid conflicts with rogue DGA extensions */
#define XDGAPixmapModeLarge 0
#define XF86DGAClientNotLocal 0
typedef struct {
float verticalRefresh;
int imageHeight;
int bytesPerScanline;
int depth;
int bitsPerPixel;
unsigned long redMask;
unsigned long greenMask;
unsigned long blueMask;
short visualClass;
int viewportWidth;
int viewportHeight;
int yViewportStep;
int maxViewportY;
int reserved1;
int reserved2;
} XDGAMode;
typedef struct {
unsigned char *data;
} XDGADevice;
#ifndef _XF86DGA_SERVER_
typedef struct {
int type;
unsigned long serial;
int screen;
unsigned int state;
unsigned int button;
typedef struct {
int type;
unsigned long serial;
int screen;
unsigned int state;
unsigned int keycode;
} XDGAKeyEvent;
typedef struct {
int type;
unsigned long serial;
int screen;
unsigned int state;
int dx;
int dy;
typedef union {
int type;
} XDGAEvent;
int *eventBase,
int *erroBase
);
int *majorVersion,
int *minorVersion
);
int screen,
int *num
);
int screen,
int mode
);
int screen
);
void XDGACloseFramebuffer(
int screen
);
void XDGASetViewport(
int screen,
int x,
int y,
int flags
);
void XDGAInstallColormap(
int screen,
);
int screen,
int alloc
);
void XDGASelectInput(
int screen,
long event_mask
);
void XDGAFillRectangle(
int screen,
int x,
int y,
unsigned int width,
unsigned int height,
unsigned long color
);
void XDGACopyArea(
int screen,
int srcx,
int srcy,
unsigned int width,
unsigned int height,
int dstx,
int dsty
);
void XDGACopyTransparentArea(
int screen,
int srcx,
int srcy,
unsigned int width,
unsigned int height,
int dstx,
int dsty,
unsigned long key
);
int screen
);
void XDGASync(
int screen
);
);
void XDGAChangePixmapMode(
int screen,
int *x,
int *y,
int mode
);
#endif /* _XF86DGA_SERVER_ */
#endif /* _XF86DGA_H_ */