c++11 - vgAppendPathData and vgModifyPathCoords, how to change visibility of path segments -


i have question regarding changing visibility of path segments via vg_line_to_abs , vg_move_to_abs

first, i've been told it's resource expensive create , destroy openvg paths, , it's fast create path, modify it

therefore, in init function have

vg3dpath = vgcreatepath(vg_path_format_standard, vg_path_datatype_f, 1.0f, 0.0f, seg_pts, seg_pts * 2, vg_path_capability_all); vgappendpathdata(vg3dpath, seg_pts, (const vgubyte *)vg3dpathsegments, points);

and in draw function have,

vgmodifypathcoords(vg3dpath, 0, seg_pts, points);

the number of points, seg_pts not change, location of points, stored in points array (defined 2*seg_pts in size x , y coordinates of each point) .

this works fine.

my issue vgmodifypathcoords() not take segment description array, vg3dpathsegments (defined seg_pts+1 in size, vg_move_to_abs, vg_line_to_abs ... vg_line_to_abs, vg_close_path)

if want change visibility of segments. i. e. change of vg_line_to_abs vg_move_to_abs, cannot pass vgmodifypathcoords(..)

my initial thinking make vg3dpathsegments, class private variable, , changing values in automatically change properties in path, it's passed const, not work.

how can change these properties of path? there better approach?

the language c++11 platform imx6, yocto

thank -d


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -