Hi Aurelein,

I would recommend against removing the non const methods and the
getUseModelViewAndProjectionUniforms() methods in the short to mid
term, we can officially deprecate them but requiring 3rd party project
to immediaite update their codes when they might be trying to maintain
compatibility with a range of OSG version isn't ideal.  You can do it
using checks against OSG version but it ends up leading to messing
codes.  The const change might often be compatible across OSG
versions.

So for now I'd suggest concentrating on getting the new functionality
working whilst retaining backwards compatibility.  Using a CMake
compile option would be an appropriate way to manage deprecating API,
this would allow the core OSG to built cleanly with the new API only,
and any 3rd party projects to start moving across as well but not
force anything on anyone till we have a stable release out.

Robert.

On 18 February 2013 08:45, Aurelien Albert <[email protected]> wrote:
> Hi Robert,
>
> For information, I've just rebuild from scratch these projects using this 
> submission.
>
> Due to the API changes, I had to edit 3 lines of code, all in "osgEarth" 
> project.
>  - 2 because of the use of "getAttributeList" non-const method => replace 
> with a "const get" the a "set"
>  - 1 because of the use of "getUseModelViewAndProjectionUniforms" => replace 
> with the new method which returns flags
>
> And I'm currently working on a more complete submission, with support for :
>  - osg::Material built-in uniforms
>  - osg::Light built-in uniforms
>  - osg::Viewport built-in uniforms
>  - maybe a few more
>  - a complete example application
>
> Cheers,
> Aurelien
>
>
>
> OSG :
> OpenThreads
> osg
> osgUtil
> osgDB
> osgFX
> osgGA
> osgParticle
> osgShadow
> osgTerrain
> osgText
> osgSim
> osgViewer
> osgQt
> osgManipulator
> osgAnimation
> osgVolume
> osgWidget
> osgPresentation
>
> OSG plugins :
> osgdb_3ds
> osgdb_3dc
> osgdb_ac
> osgdb_bsp
> osgdb_bmp
> osgdb_bvh
> osgdb_curl
> osgdb_dae
> osgdb_dds
> osgdb_dot
> osgdb_dw
> osgdb_dxf
> osgdb_freetype
> osgdb_gif
> osgdb_geo
> osgdb_gdal
> osgdb_glsl
> osgdb_ive
> osgdb_jpeg
> osgdb_lwo
> osgdb_lws
> osgdb_md2
> osgdb_mdl
> osgdb_obj
> osgdb_ogr
> osgdb_openflight
> osgdb_osg
> osgdb_osga
> osgdb_osgtgz
> osgdb_osgviewer
> osgdb_p3d
> osgdb_pic
> osgdb_ply
> osgdb_png
> osgdb_pnm
> osgdb_pov
> osgdb_pvr
> osgdb_rgb
> osgdb_shp
> osgdb_stl
> osgdb_tiff
> osgdb_tga
> osgdb_tgz
> osgdb_vtf
> osgdb_x
> osgdb_zip
> osgdb_serializers_osg
> osgdb_serializers_osganimation
> osgdb_serializers_osgfx
> osgdb_serializers_osgga
> osgdb_serializers_osgmanipulator
> osgdb_serializers_osgparticle
> osgdb_serializers_osgshadow
> osgdb_serializers_osgsim
> osgdb_serializers_osgterrain
> osgdb_serializers_osgtext
> osgdb_serializers_osgvolume
> osgdb_deprecated_osg
> osgdb_deprecated_osgAnimation
> osgdb_deprecated_osgFX
> osgdb_deprecated_osgParticle
> osgdb_deprecated_osgShadow
> osgdb_deprecated_osgSim
> osgdb_deprecated_osgTerrain
> osgdb_deprecated_osgText
> osgdb_deprecated_osgViewer
> osgdb_deprecated_osgVolume
> osgdb_deprecated_osgWidget
>
> OSG Earth :
> osgEarth
> osgEarthAnnotation
> osgEarthFeatures
> osgEarthSymbology
> osgEarthUtil
>
> OSG Earth drivers :
> earth
> kml
> wcs
> wms
> tilecache
> tileservice
> yahoo
> arcgis_map_cache
> arcgis
> tms
> vpb
> osg
> agglite
> model_simple
> debug
> cache_filesystem
> ocean_surface
> refresh
> xyz
> gdal
> feature_ogr
> feature_wfs
> feature_tfs
> model_feature_stencil
> model_feature_geom
> mask_feature
> label_overlay
> label_annotation
> engine_osgterrain
> engine_quadtree
> vdatum_egm84
> vdatum_egm96
> vdatum_egm2008
> [/u]
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=52725#52725
>
>
>
>
>
> _______________________________________________
> 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