Results 1 to 2 of 2

Thread: "vgSetParameterfv" vs "vgSetColor"

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

    "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
    Posts
    353

    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
    DevTech@imgtec.com | http://www.powervrinsider.com

Similar Threads

  1. Compile: "ERROR: Missing main()" but spec says linking L0009
    By gardin in forum OpenGL ES 2X - for programmable 3D graphics pipelines
    Replies: 2
    Last Post: 01-09-2012, 05:44 AM
  2. "required extension" and "core addition"
    By wycwang in forum OpenGL ES general technical discussions
    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
  •