nanogui: [Nano-X] PolygonRegion
Subject:
Re: [Nano-X] PolygonRegion
From:
Murphy Chen ####@####.####
Date:
7 Jun 2000 03:06:44 -0000
Message-Id: <Pine.LNX.4.10.10006071051370.8578-101000@pc120105.ccl.itri.org.tw>
Dear TangHao,
> Can i share the code? i am interesting on add the wrapper function of
> region and clip.
Here you go.
Note that the codes currently compiled, but are not tested yet.
Currently the clipping region related function include:
GR_REGION_ID GrNewRegion(void);
void GrDestroyRegion(GR_REGION_ID region);
void GrUnionRectWithRegion(GR_REGION_ID region, MWRECT *rect);
void GrUnionRegion(GR_REGION_ID dst_rgn, GR_REGION_ID src_rgn1,
GR_REGION_ID src_rgn2);
void GrIntersectRegion(GR_REGION_ID dst_rgn, GR_REGION_ID src_rgn1,
GR_REGION_ID src_rgn2);
void GrSetGCRegion(GR_GC_ID gc, GR_REGION_ID region);
With regards,
Murphy