From c00a88f4a468225ed7ef26e325e99891e4fabc76 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 1 Oct 2003 09:18:24 +0000 Subject: [PATCH] From Tree, added missing setTextureData method. --- src/osg/Geometry.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/osg/Geometry.cpp b/src/osg/Geometry.cpp index c2faa0811..0706b7a62 100644 --- a/src/osg/Geometry.cpp +++ b/src/osg/Geometry.cpp @@ -399,6 +399,14 @@ Geometry::~Geometry() // no need to delete, all automatically handled by ref_ptr :-) } +void Geometry::setTexCoordData(unsigned int unit,const ArrayData& arrayData) +{ + if (_texCoordList.size()<=unit) + _texCoordList.resize(unit+1); + + _texCoordList[unit] = arrayData; +} + Geometry::ArrayData& Geometry::getTexCoordData(unsigned int unit) { if (_texCoordList.size()<=unit)