From 3ba2df20bc93a97c479c4021a9218eadcf5d850f Mon Sep 17 00:00:00 2001 From: scuri Date: Thu, 24 Jun 2010 19:32:25 +0000 Subject: *** empty log message *** --- src/drv/cdgl.c | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) (limited to 'src/drv') 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; -- cgit v1.2.3