LWJGL Forum

Archive => Resolved Bugs/RFE => Topic started by: elFarto on June 28, 2012, 18:32:57

Title: [FIXED] NV_Path_Rendering, some functions are missing a pathBase parameter
Post by: elFarto on June 28, 2012, 18:32:57
Hi

Just started to play around with NV_Path_Rendering, and I've notice that: glStencilFillPathInstancedNV, glStencilStrokePathInstancedNV, glCoverFillPathInstancedNV, glCoverStrokePathInstancedNV, glGetPathMetricsNV and glGetPathSpacingNV are all missing a pathBase parameter, and instead pass in 0.

Regards
elFarto
Title: Re: [BUG] NV_Path_Rendering, some functions are missing a pathBase parameter
Post by: spasi on June 28, 2012, 19:26:39
It's pointless, isn't it? You can simply set the buffer to the appropriate .position(). The numPaths parameter is hidden as well, it's calculated according to the .remaining() buffer elements. Am I missing something?
Title: Re: [BUG] NV_Path_Rendering, some functions are missing a pathBase parameter
Post by: elFarto on June 29, 2012, 07:49:32
No, pathBase is the id of the path that the paths parameter is relative to. It's similar to basevertex in glDrawElementsBaseVertex, or how glListBase works with display lists. It's not the index into the paths array/buffer.

Regards
elFarto
Title: Re: [BUG] NV_Path_Rendering, some functions are missing a pathBase parameter
Post by: spasi on June 29, 2012, 10:25:56
Indeed, fixed on next nightly. Thanks for reporting this.