diff options
author | scuri <scuri> | 2010-06-24 19:32:25 +0000 |
---|---|---|
committer | scuri <scuri> | 2010-06-24 19:32:25 +0000 |
commit | 3ba2df20bc93a97c479c4021a9218eadcf5d850f (patch) | |
tree | 5ee4a6d0142f6a33a4c6a7b669f99b3664cd37fc /src/drv/cdgl.c | |
parent | da0f58cecf7a5280df7efa4e8d4443cb65b0fe1d (diff) |
*** empty log message ***
Diffstat (limited to 'src/drv/cdgl.c')
-rw-r--r-- | src/drv/cdgl.c | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/src/drv/cdgl.c b/src/drv/cdgl.c index 2934684..94b1367 100644 --- a/src/drv/cdgl.c +++ b/src/drv/cdgl.c @@ -262,6 +262,22 @@ static int cdinteriorstyle(cdCtxCanvas *ctxcanvas, int style) return style; } +static void cdpattern(cdCtxCanvas *ctxcanvas, int n, int m, const long int *pattern) +{ + (void)pattern; + (void)m; + (void)n; + cdinteriorstyle(ctxcanvas, CD_SOLID); +} + +static void cdstipple(cdCtxCanvas *ctxcanvas, int n, int m, const unsigned char *stipple) +{ + (void)stipple; + (void)m; + (void)n; + cdinteriorstyle(ctxcanvas, CD_SOLID); +} + static int cdlinestyle(cdCtxCanvas *ctxcanvas, int style) { switch (style) @@ -314,14 +330,6 @@ static int cdlinewidth(cdCtxCanvas *ctxcanvas, int width) return width; } -static int cdbackopacity(cdCtxCanvas *ctxcanvas, int opaque) -{ - ctxcanvas->canvas->back_opacity = opaque; - cdinteriorstyle(ctxcanvas, ctxcanvas->canvas->interior_style); - cdlinestyle(ctxcanvas, ctxcanvas->canvas->line_style); - return opaque; -} - /***********************************************************************************/ /* Functions to get the font name path */ /* Base source = https://www.h3dapi.org:8090/H3DAPI/trunk/H3DAPI/src/FontStyle.cpp */ @@ -1443,9 +1451,10 @@ static void cdinittable(cdCanvas* canvas) canvas->cxWriteMode = cdwritemode; canvas->cxLineStyle = cdlinestyle; canvas->cxLineWidth = cdlinewidth; - canvas->cxBackOpacity = cdbackopacity; canvas->cxInteriorStyle = cdinteriorstyle; canvas->cxHatch = cdhatch; + canvas->cxStipple = cdstipple; + canvas->cxPattern = cdpattern; canvas->cxForeground = cdforeground; canvas->cxTransform = cdtransform; |