renderproto.h revision 677833bc953b6cb418c701facbdcf4aa18d6c44e
/*
* $XFree86: xc/include/extensions/renderproto.h,v 1.12 2002/09/26 02:56:48 keithp Exp $
*
* Copyright © 2000 SuSE, Inc.
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
* the above copyright notice appear in all copies and that both that
* copyright notice and this permission notice appear in supporting
* documentation, and that the name of SuSE not be used in advertising or
* publicity pertaining to distribution of the software without specific,
* written prior permission. SuSE makes no representations about the
* suitability of this software for any purpose. It is provided "as is"
* without express or implied warranty.
*
* SuSE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL SuSE
* BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
* OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
* Author: Keith Packard, SuSE, Inc.
*/
#ifndef _XRENDERP_H_
#define _XRENDERP_H_
#define PictFormat CARD32
/*
* data structures
*/
typedef struct {
#define sz_xDirectFormat 16
typedef struct {
#define sz_xPictFormInfo 28
typedef struct {
} xPictVisual;
#define sz_xPictVisual 8
typedef struct {
} xPictDepth;
#define sz_xPictDepth 8
typedef struct {
} xPictScreen;
#define sz_xPictScreen 8
typedef struct {
} xIndexValue;
#define sz_xIndexValue 12
typedef struct {
} xRenderColor;
#define sz_xRenderColor 8
typedef struct {
} xPointFixed;
#define sz_xPointFixed 8
typedef struct {
} xLineFixed;
#define sz_xLineFixed 16
typedef struct {
} xTriangle;
#define sz_xTriangle 24
typedef struct {
} xTrapezoid;
#define sz_xTrapezoid 40
typedef struct {
} xGlyphInfo;
#define sz_xGlyphInfo 12
typedef struct {
} xGlyphElt;
#define sz_xGlyphElt 8
typedef struct {
Fixed l, r, y;
} xSpanFix;
#define sz_xSpanFix 12
typedef struct {
} xTrap;
#define sz_xTrap 24
/*
* requests and replies
*/
typedef struct {
#define sz_xRenderQueryVersionReq 12
typedef struct {
#define sz_xRenderQueryVersionReply 32
typedef struct {
#define sz_xRenderQueryPictFormatsReq 4
typedef struct {
#define sz_xRenderQueryPictFormatsReply 32
typedef struct {
#define sz_xRenderQueryPictIndexValuesReq 8
typedef struct {
#define sz_xRenderQueryPictIndexValuesReply 32
typedef struct {
#define sz_xRenderCreatePictureReq 20
typedef struct {
#define sz_xRenderChangePictureReq 12
typedef struct {
#define sz_xRenderSetPictureClipRectanglesReq 12
typedef struct {
#define sz_xRenderFreePictureReq 8
typedef struct {
#define sz_xRenderCompositeReq 36
typedef struct {
#define sz_xRenderScaleReq 32
typedef struct {
#define sz_xRenderTrapezoidsReq 24
typedef struct {
#define sz_xRenderTrianglesReq 24
typedef struct {
#define sz_xRenderTriStripReq 24
typedef struct {
#define sz_xRenderTriFanReq 24
typedef struct {
#define sz_xRenderCreateGlyphSetReq 12
typedef struct {
#define sz_xRenderReferenceGlyphSetReq 24
typedef struct {
#define sz_xRenderFreeGlyphSetReq 8
typedef struct {
#define sz_xRenderAddGlyphsReq 12
typedef struct {
#define sz_xRenderFreeGlyphsReq 8
typedef struct {
#define sz_xRenderCompositeGlyphs8Req 28
#define sz_xRenderCompositeGlyphs16Req 28
#define sz_xRenderCompositeGlyphs32Req 28
/* 0.1 and higher */
typedef struct {
#define sz_xRenderFillRectanglesReq 20
/* 0.5 and higher */
typedef struct {
#define sz_xRenderCreateCursorReq 16
/* 0.6 and higher */
/*
* This can't use an array because 32-bit values may be in bitfields
*/
typedef struct {
#define sz_xRenderTransform 36
typedef struct {
#define sz_xRenderSetPictureTransformReq 44
typedef struct {
#define sz_xRenderQueryFiltersReq 8
typedef struct {
#define sz_xRenderQueryFiltersReply 32
typedef struct {
#define sz_xRenderSetPictureFilterReq 12
/* 0.8 and higher */
typedef struct {
#define sz_xAnimCursorElt 8
typedef struct {
#define sz_xRenderCreateAnimCursorReq 8
/* 0.9 and higher */
typedef struct {
#define sz_xRenderAddTrapsReq 12
/* 0.10 and higher */
typedef struct {
#define sz_xRenderCreateSolidFillReq 16
typedef struct {
#define sz_xRenderCreateLinearGradientReq 28
typedef struct {
#define sz_xRenderCreateRadialGradientReq 36
typedef struct {
#define sz_xRenderCreateConicalGradientReq 24
#endif /* _XRENDERP_H_ */