Hi All,
Can “vgSetParameterfv” and “vgSetColor” be used interchangeably?
Let me describe this with an example. Assume that initially I have:
VGPaint vgPaintObject = vgCreatePaint();
vgSetParameteri(vgPaintObject, VG_PAINT_TYPE, VG_PAINT_TYPE_COLOR);
Is it possible to set the paint color to be used by any one of the below two approaches?
(or will there be any difference?)
Approach 1 (using vgSetParameterfv):
VGfloat afDrawColor[4] = { 1.0f, 0.0f, 0.0f, 0.0f };
vgSetParameterfv(vgPaintObject, VG_PAINT_COLOR, 4, afDrawColor);
Approach 2 (using vgSetColor):
vgSetColor(vgPaintObject, 0xFF000000);
- Googie