Results 1 to 2 of 2

Thread: "vgSetParameterfv" vs "vgSetColor"

  1. #1
    Junior Member
    Join Date
    Apr 2008
    Libertyville, IL

    "vgSetParameterfv" vs "vgSetColor"

    Hi All,

    Can "vgSetParameterfv" and "vgSetColor" be used interchangeably?
    Let me describe this with an example. Assume that initially I have:
    Code :
    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):
    Code :
    VGfloat afDrawColor[4] = { 1.0f, 0.0f, 0.0f, 0.0f };
    vgSetParameterfv(vgPaintObject, VG_PAINT_COLOR, 4, afDrawColor);

    Approach 2 (using vgSetColor):
    Code :
    vgSetColor(vgPaintObject, 0xFF000000);

    - Googie

  2. #2
    Senior Member
    Join Date
    May 2006

    Re: "vgSetParameterfv" vs "vgSetColor"

    Yes, these are equivalent.
    Georg Kolling, Imagination Technologies
    Please ask questions specific to PowerVR hardware or SDKs on the PowerVR Insider Forum |

Similar Threads

  1. Replies: 2
    Last Post: 01-09-2012, 04:44 AM
  2. "required extension" and "core addition"
    By wycwang in forum OpenGL ES
    Replies: 2
    Last Post: 09-19-2007, 02:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean