[FIXED] NV_Path_Rendering, some functions are missing a pathBase parameter

Started by elFarto, June 28, 2012, 18:32:57

Previous topic - Next topic

elFarto

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

spasi

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?

elFarto

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

spasi