1 #include "ShaderGeometry.hxx"
7 void ShaderGeometry::drawImplementation(RenderInfo& renderInfo) const
9 for(PositionSizeList::const_iterator itr = _trees.begin();
12 glColor4fv(itr->ptr());
13 _geometry->draw(renderInfo);
17 BoundingBox ShaderGeometry::computeBound() const
19 BoundingBox geom_box = _geometry->getBound();
21 for(PositionSizeList::const_iterator itr = _trees.begin();
24 bb.expandBy(geom_box.corner(0)*(*itr)[3] +
25 Vec3((*itr)[0], (*itr)[1], (*itr)[2]));
26 bb.expandBy(geom_box.corner(7)*(*itr)[3] +
27 Vec3((*itr)[0], (*itr)[1], (*itr)[2]));