Moved the shadow creation code into a seperate CreateShadowedScene header and source,

and exposed just the basic createShadowedScene function in the header.
This commit is contained in:
Robert Osfield
2002-11-21 15:35:51 +00:00
parent 3f97d6a44d
commit a545f3b48c
11 changed files with 436 additions and 401 deletions

View File

@@ -18,7 +18,7 @@ TexGen::~TexGen()
}
void TexGen::setPlane(Coord which, const Vec4& plane)
void TexGen::setPlane(Coord which, const Plane& plane)
{
switch( which )
{
@@ -30,8 +30,19 @@ void TexGen::setPlane(Coord which, const Vec4& plane)
}
}
const Plane& TexGen::getPlane(Coord which) const
{
switch( which )
{
case S : return _plane_s;
case T : return _plane_t;
case R : return _plane_r;
case Q : return _plane_q;
default : notify(WARN)<<"Error: invalid 'which' passed TexGen::getPlane(which)"<<std::endl; return _plane_r;
}
}
const Vec4& TexGen::getPlane(Coord which) const
Plane& TexGen::getPlane(Coord which)
{
switch( which )
{