From Tree, added missing setTextureData method.

This commit is contained in:
Robert Osfield
2003-10-01 09:18:24 +00:00
parent ddde1c4e46
commit c00a88f4a4

View File

@@ -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)