diff options
author | Keith Packard <keithp@keithp.com> | 2004-08-06 23:42:10 +0000 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2004-08-06 23:42:10 +0000 |
commit | 06f5e62edcb2af058bf4720a4b08665decd67158 (patch) | |
tree | 398af7a3a7d69aa71ea7fbfa8bee349df1384029 | |
parent | 713f778be0494a4f649922f2fa4cc24e36ddaf4b (diff) |
Add RenderAddTraps. Rewrite trapezoid rendering code.
-rw-r--r-- | render.h | 7 | ||||
-rw-r--r-- | renderproto.h | 25 |
2 files changed, 30 insertions, 2 deletions
@@ -33,7 +33,7 @@ typedef unsigned long PictFormat; #define RENDER_NAME "RENDER" #define RENDER_MAJOR 0 -#define RENDER_MINOR 8 +#define RENDER_MINOR 9 #define X_RenderQueryVersion 0 #define X_RenderQueryPictFormats 1 @@ -68,8 +68,11 @@ typedef unsigned long PictFormat; #define X_RenderSetPictureTransform 28 #define X_RenderQueryFilters 29 #define X_RenderSetPictureFilter 30 +/* 0.8 */ #define X_RenderCreateAnimCursor 31 -#define RenderNumberRequests (X_RenderCreateAnimCursor+1) +/* 0.9 */ +#define X_RenderAddTraps 32 +#define RenderNumberRequests (X_RenderAddTraps+1) #define BadPictFormat 0 #define BadPicture 1 diff --git a/renderproto.h b/renderproto.h index 4b5da46..aecc77e 100644 --- a/renderproto.h +++ b/renderproto.h @@ -168,6 +168,18 @@ typedef struct { #define sz_xGlyphElt 8 +typedef struct { + Fixed l, r, y; +} xSpanFix; + +#define sz_xSpanFix 12 + +typedef struct { + xSpanFix top, bot; +} xTrap; + +#define sz_xTrap 24 + /* * requests and replies */ @@ -568,6 +580,19 @@ typedef struct { #define sz_xRenderCreateAnimCursorReq 8 +/* 0.9 and higher */ + +typedef struct { + CARD8 reqType; + CARD8 renderReqType; + CARD16 length B16; + Picture picture; + INT16 xOff B16; + INT16 yOff B16; +} xRenderAddTrapsReq; + +#define sz_xRenderAddTrapsReq 12 + #undef Window #undef Drawable #undef Font |