Hello Gerrit,

 

short question about the meaning of the following Geometry core
attribut: useAttribCalls

 

It has the same documentation string as useVAO attribute: ' Flag to
activate caching the geometry inside a VAO.'

 

It is used in the CSM examples but I only found one reference in
Geometry::drawPrimitives (OSGGeometryGLHandler.inl)

 

    // Quick solution must be cleaned up.

    if(_sfUseAttribCalls.getValue() == true)

    {

        usesShader = true;

    }

#ifdef OSG_OGL_VERTEXATTRIB_FUNCS

    else

    {

        if(pEnv->getActiveShader() != 0)

        {

            if((pEnv->getRequiredOGLFeature() & 

                HardwareContext::HasAttribAliasing) == 0x0000)

            {

                usesShader = true;

            }

            else

            {

                usesShader = (pEnv->getWindow()->getOGLFeatures() &

                              HardwareContext::HasAttribAliasing   ) !=
0x0000;

            }

        }

    }

#endif

 

which does not help much.

 

Can you give a quick idea behind this attribute and its use pattern?

 

Best,

Johannes

 


------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to