From 196aafb19a3cfdc8c21f9bf75814cf0d84ff4446 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Fri, 6 Aug 2004 23:42:10 +0000 Subject: Add RenderAddTraps. Rewrite trapezoid rendering code. --- render/picturestr.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'render/picturestr.h') diff --git a/render/picturestr.h b/render/picturestr.h index 70881fc78..cdeb207a6 100644 --- a/render/picturestr.h +++ b/render/picturestr.h @@ -226,6 +226,18 @@ typedef void (*UpdateIndexedProcPtr) (ScreenPtr pScreen, int ndef, xColorItem *pdef); +typedef void (*AddTrapsProcPtr) (PicturePtr pPicture, + INT16 xOff, + INT16 yOff, + int ntrap, + xTrap *traps); + +typedef void (*AddTrianglesProcPtr) (PicturePtr pPicture, + INT16 xOff, + INT16 yOff, + int ntri, + xTriangle *tris); + typedef struct _PictureScreen { int totalPictureSize; unsigned int *PicturePrivateSizes; @@ -273,6 +285,11 @@ typedef struct _PictureScreen { TriFanProcPtr TriFan; RasterizeTrapezoidProcPtr RasterizeTrapezoid; + + AddTrianglesProcPtr AddTriangles; + + AddTrapsProcPtr AddTraps; + } PictureScreenRec, *PictureScreenPtr; extern int PictureScreenPrivateIndex; @@ -516,6 +533,13 @@ AnimCurInit (ScreenPtr pScreen); int AnimCursorCreate (CursorPtr *cursors, CARD32 *deltas, int ncursor, CursorPtr *ppCursor); +void +AddTraps (PicturePtr pPicture, + INT16 xOff, + INT16 yOff, + int ntraps, + xTrap *traps); + #ifdef PANORAMIX void PanoramiXRenderInit (void); void PanoramiXRenderReset (void); -- cgit v1.2.3