Hi Paul,

I am just working on merging your gl3example.cpp into svn/trunk and
have renamed it osgsimplegl3 as it's a very bare bones little viewer
example.  I have also added the following lines just before the
viewer.run() so that the example works fine on GL2 etc. builds.

    // for non GL3/GL4 and non GLES2 platforms we need enable the osg_
uniforms that the shaders will use,
    // you don't need thse two lines on GL3/GL4 and GLES2 specific
builds as these will be enable by default.
    gc->getState()->setUseModelViewAndProjectionUniforms(true);
    gc->getState()->setUseVertexAttributeAliasing(true);

Is this OK?

Robert.


On 6 January 2012 15:32, Paul Martz <[email protected]> wrote:
> On 1/5/2012 10:18 AM, Robert Osfield wrote:
>>
>> Thanks for this.  Do you feel it'd be appropriate to have this as an
>> one of the OpenSceneGraph/examples?
>
>
> Hi Robert -- I do think it would be good to have it available, so if you'd
> like to include it in the examples, please do. I've attached an updated
> version that cleans up the code and comments a little bit. I'll forgo any
> kind of copyright and donate the code to the public domain (noted at the top
> of the file).
>
> I presume this would need to be added in such a way that it only builds for
> GL3, and there are a few different ways to do that. I'll leave the decision
> up to you to set a precedent for how GL3-specific examples should be added.
>   -Paul
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to