Yes you can, however OSG uses simple names that will likely also be used in
other projects (e.g. Array, Node, Group etc.) so it's quite likely you'll
get name conflicts if you use another library which uses the same class
names.
I've had developers making similar complaints to me, so as a compromise we
do
using somenamespace::SomeClass;
using somenamespace::SomeFunction;
etc. for things that are used very frequently.
That way it will be less of a big deal to change the code if we start using
a library that uses the same class names.

On 13 April 2010 17:12, mas oug <[email protected]> wrote:

> Hi,
> Just curious, I noticed that in a lot of the code, we use stuff like
> "osg::someFunctio()" and etc...
> Could we use a namespace "using namespace osg;" to avoid having to write
> "osg::" every single time?
>
> THANKS!!
> -Masoug
>
> _______________________________________________
> 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