PixelLightAPI
.
|
Abstract portal scene node. More...
#include <SNPortal.h>
Public Types | |
enum | EDebugFlags { DebugNoPortalPolygon = 1<<8, DebugPortalVertices = 1<<9 } |
Scene node debug flags (SceneNode debug flags extension) More... | |
Public Member Functions | |
PLS_API PLMath::Polygon & | GetPolygon () |
Returns the portal polygon. | |
PLS_API void | UpdatePolygon () |
Call this function after you manipulated the portal polygon. | |
PLS_API const PLMath::Polygon & | GetContainerPolygon () |
Returns the portal polygon in container space. | |
PLS_API const PLMath::Matrix3x4 & | GetWarpMatrix () |
Returns the warp matrix. | |
virtual PLS_API void | DrawDebug (PLRenderer::Renderer &cRenderer, const VisNode *pVisNode=nullptr) override |
This function is called when the debug parts of the scene are drawn. | |
Protected Member Functions | |
PLS_API | SNPortal () |
Default constructor. | |
virtual PLS_API | ~SNPortal () |
Destructor. | |
Protected Attributes | |
PLCore::uint8 | m_nInternalPortalFlags |
Abstract portal scene node.
Scene node debug flags (SceneNode debug flags extension)
PLS_API PLScene::SNPortal::SNPortal | ( | ) | [protected] |
Default constructor.
virtual PLS_API PLScene::SNPortal::~SNPortal | ( | ) | [protected, virtual] |
Destructor.
PLS_API PLMath::Polygon& PLScene::SNPortal::GetPolygon | ( | ) |
Returns the portal polygon.
PLS_API void PLScene::SNPortal::UpdatePolygon | ( | ) |
Call this function after you manipulated the portal polygon.
PLS_API const PLMath::Polygon& PLScene::SNPortal::GetContainerPolygon | ( | ) |
Returns the portal polygon in container space.
PLS_API const PLMath::Matrix3x4& PLScene::SNPortal::GetWarpMatrix | ( | ) |
Returns the warp matrix.
Reimplemented in PLScene::SNCellPortal.
virtual PLS_API void PLScene::SNPortal::DrawDebug | ( | PLRenderer::Renderer & | cRenderer, |
const VisNode * | pVisNode = nullptr |
||
) | [override, virtual] |
This function is called when the debug parts of the scene are drawn.
[in] | cRenderer | The used renderer |
[in] | pVisNode | The current visibility node of this scene node, can be a null pointer |
Reimplemented from PLScene::SceneNode.
PLCore::uint8 PLScene::SNPortal::m_nInternalPortalFlags [protected] |
Internal portal flags
|