Hi Aurelien,

I haven't used this feature yet so can't comment at too low a level,
but my first reaction is that I'd expect state relating to primitives
to be stored osg::Geometry and osg::PrimitiveSet subclasses.

Could you give me a few more details of exactly how you use it with
your scene graph, and the effect it has on the way that
primitives/vertex data are interpreted.

Thanks,
Robert.

On 20 February 2013 15:42, Aurelien Albert <[email protected]> wrote:
> Hi,
>
> This is a submission for "glPrimitiveRestartIndex" use as a StateAttribute.
>
> The function is described here :
>
> http://www.opengl.org/sdk/docs/man3/xhtml/glPrimitiveRestartIndex.xml
>
> If "glPrimitiveRestartIndex" is not supported, there is a fallback for NVidia 
> extension "glPrimitiveRestartIndexNV"
>
> I didn't add the "GL_PRIMITIVE_RESTART" mode as an associated mode on this 
> StateAttribute because usually we define a "restart index" at the top of an 
> object subgraph and then activate the mode only on some Geode/Drawables.
>
>
> Cheers,
> Aurelien
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=52786#52786
>
>
>
>
> _______________________________________________
> osg-submissions mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to