From: <rv...@us...> - 2006-01-31 18:14:28
|
Update of /cvsroot/crystal/CS/plugins/engine/renderloop/fatrl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7999/plugins/engine/renderloop/fatrl Modified Files: portalnode.cpp Log Message: - rvl_ removed logical bug in his code (that was trying to clear stencil in ClosePortal() on hardware where stencil is not available) Useless scissor test enabling/disabling removed from ClosePortal() Portal flags coversion was added to make renderer portal code independent of engine stuff. Index: portalnode.cpp =================================================================== RCS file: /cvsroot/crystal/CS/plugins/engine/renderloop/fatrl/portalnode.cpp,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- portalnode.cpp 22 Jan 2006 01:28:19 -0000 1.9 +++ portalnode.cpp 31 Jan 2006 18:14:12 -0000 1.10 @@ -127,9 +127,15 @@ PORTAL_CHECK(portal, !poly.GetVertexCount (), false); + csFlags engine_flags = portal->GetFlags(); + csFlags g3d_flags = 0; + if (engine_flags.Check(CS_PORTAL_FLOAT)) g3d_flags.Set(CS_OPENPORTAL_FLOAT); + if (engine_flags.Check(CS_PORTAL_ZFILL)) g3d_flags.Set(CS_OPENPORTAL_ZFILL); + if (engine_flags.Check(CS_PORTAL_MIRROR)) g3d_flags.Set(CS_OPENPORTAL_MIRROR); + iGraphics3D* g3d = rview->GetGraphics3D (); g3d->OpenPortal (poly.GetVertexCount(), poly.GetVertices(), - camera_plane, portal->GetFlags()); + camera_plane, g3d_flags); PrepareView (rview, sector); |