Hi Antoine,

I'm not sure where you might have got the idea that Vec4 uses doubles,
the typedef in include/osg/Vec4 is:

    typedef Vec4f Vec4;

And Vec4f most definitely uses floats.

All of Vec2, Vec3 and Vec4 all are typedef'd to Vec2f, Vec3f and Vec4f
respectively as OpenGL hardware has up till very recently only been
capable of handling floats.

Robert.

On Tue, Jan 11, 2011 at 9:05 AM, Antoine Rennuit
<a.renn...@softkinetic.net> wrote:
> Hi there,
>
> I am just being curious here but does anyone know why osg::Vec4 is storing 
> double (it is a typedef of Vec4d) while osg::Vec3 is storing float (it is a 
> typedef of Vec3f)? Is there a logic behind it that I did not perceive or is 
> this only for historical reasons?
>
> Thanks,
>
> Antoine.
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=35518#35518
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to