Added new setPlanesFromMatrix method

This commit is contained in:
Robert Osfield 2004-10-01 15:48:00 +00:00
parent 78f3a4a0cd
commit 03d2ecccde

View File

@ -108,6 +108,12 @@ class SG_EXPORT TexGen : public StateAttribute
Plane& getPlane(Coord which);
const Plane& getPlane(Coord which) const;
/** Set the tex gen planes from specified matrix.
* Typical usage would be to pass in a projection
* matrix to set up projective texturing.
*/
void setPlanesFromMatrix(const Matrixd& matrix);
protected :