Hi
 
if you have only osg::Array pointer then all you can get directly is array size : array->getNumElements()
as for others - you can get to them only with exact type (which you can get computed with help of array->getDataType() and array->getType() return values)
 
Cheers
 
 
28.12.2012, 08:59, "Preet" <[email protected]>:
Hi,

I'm trying to call std::vector functions on generic array objects. So I'd like to be able to get an osg::Array and call something like size() or clear() on it, but I'm not sure how I can do this without casting it to one of the 'proper' array types. Is this possible?


Preet
,

_______________________________________________
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