57 filter->CopyParameterL(KLitOutlineY, &filter->iOutlineY, this); |
57 filter->CopyParameterL(KLitOutlineY, &filter->iOutlineY, this); |
58 filter->CopyParameterL(KLitSteepness, &filter->iSteepness, this); |
58 filter->CopyParameterL(KLitSteepness, &filter->iSteepness, this); |
59 return filter; |
59 return filter; |
60 } |
60 } |
61 |
61 |
62 void CHuiFxVg10BevelFilter::DrawEffect(CHuiFxEngine& aEngine, VGImage aTargetImage, VGImage aSourceImage, TInt aWidth, TInt aHeight) |
62 void CHuiFxVg10BevelFilter::DrawEffect(CHuiFxEngine& aEngine, VGImage aTargetImage, VGImage aSourceImage, TInt aWidth, TInt aHeight, TBool /*aHasSurface*/) |
63 { |
63 { |
64 VGfloat outline_x = clamp(iOutlineX, EPSILON, 128.0f); |
64 VGfloat outline_x = clamp(iOutlineX, EPSILON, 128.0f); |
65 VGfloat outline_y = clamp(iOutlineY, EPSILON, 128.0f); |
65 VGfloat outline_y = clamp(iOutlineY, EPSILON, 128.0f); |
66 VGubyte steepness = (VGubyte)clamp(iSteepness, 0.0f, 255.0f); |
66 VGubyte steepness = (VGubyte)clamp(iSteepness, 0.0f, 255.0f); |
67 // VGint width = vgGetParameteri(aSourceImage, VG_IMAGE_WIDTH); |
67 // VGint width = vgGetParameteri(aSourceImage, VG_IMAGE_WIDTH); |